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.
onChange
1 parent 706f42b commit 639d8d2Copy full SHA for 639d8d2
packages/@headlessui-react/src/components/combobox/combobox.tsx
@@ -501,7 +501,7 @@ let Input = forwardRefWithAs(function Input<
501
let handleChange = useCallback(
502
(event: React.ChangeEvent<HTMLInputElement>) => {
503
dispatch({ type: ActionTypes.OpenCombobox })
504
- onChangeRef.current(event)
+ onChangeRef.current?.(event)
505
},
506
[dispatch, onChangeRef]
507
)
0 commit comments