-
Notifications
You must be signed in to change notification settings - Fork 579
Description
When I click on the suggestion getting the following error in console. after that it's not showing suggestions.
react-dom.development.js:289 Uncaught TypeError: Cannot read property 'type' of null
at getValue (getValue.js:31)
at onChangeValue (onChangeValue.js:9)
at ConnectedField._this.handleBlur (ConnectedField.js:163)
at Autosuggest.onBlur (Autosuggest.js:758)
at Object.onSuggestionClick [as onClick] (Autosuggest.js:731)
at Item._this.onClick (Item.js:78)
at HTMLUnknownElement.callCallback (react-dom.development.js:149)
at Object.invokeGuardedCallbackDev (react-dom.development.js:199)
at invokeGuardedCallback (react-dom.development.js:256)
at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:270)
I am using customized input for auto suggest.
const onChange = (event, { newValue }) => {
setValue(newValue)
};
const inputProps = {
...input,
value,
onChange: onChange
};
Could you please help on this issue?