Skip to content

Uncaught TypeError: Cannot read property 'type' of null #667

@Hajarath0729

Description

@Hajarath0729

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions