We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4069938 commit 52d21f4Copy full SHA for 52d21f4
packages/raystack/components/select/select-root.tsx
@@ -133,6 +133,12 @@ export const SelectRoot = (props: SelectRootProps) => {
133
134
const setValue = useCallback(
135
(value: string) => {
136
+ /*
137
+ * If the select is placed inside a form, onChange is called with an empty value
138
+ * WORKAROUND FOR ISSUE https://github.com/radix-ui/primitives/issues/3135
139
+ */
140
+ if (value === '') return;
141
+
142
if (multiple) {
143
updateSelectionInProgress(true);
144
const set = new Set<string>(
0 commit comments