Skip to content

Commit 1cd7ece

Browse files
committed
fix(ComboBox): controlled mode
1 parent d3e6ebc commit 1cd7ece

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,13 +1360,7 @@ export const ComboBox = forwardRef(function ComboBox<T extends object>(
13601360

13611361
// Update the input value to match the selected key's label
13621362
setInternalInputValue(expectedLabel);
1363-
}, [
1364-
isControlledKey,
1365-
isControlledInput,
1366-
effectiveSelectedKey,
1367-
getItemLabel,
1368-
children,
1369-
]);
1363+
}, [isControlledKey, isControlledInput, effectiveSelectedKey, getItemLabel]);
13701364

13711365
// Input focus handler
13721366
const handleInputFocus = useEvent((e: React.FocusEvent<HTMLInputElement>) => {

0 commit comments

Comments
 (0)