reactjs / react-autocomplete

WAI-ARIA compliant React autocomplete (combobox) component
MIT License
2.17k stars 531 forks source link

Uncaught TypeError: Cannot read property 'toLowerCase' of null #356

Open r3wt opened 6 years ago

r3wt commented 6 years ago
Uncaught TypeError: Cannot read property 'toLowerCase' of null
    at n.value (Autocomplete.js:164)
    at ri (react-dom.development.js:10728)
    at ai (react-dom.development.js:10791)
    at Hi (react-dom.development.js:11730)
    at fo (react-dom.development.js:13154)
    at To (react-dom.development.js:13825)
    at vs (react-dom.development.js:15864)
    at gs (react-dom.development.js:15903)
    at HTMLUnknownElement.c (react-dom.development.js:100)
    at Object.Nl (react-dom.development.js:138)
    at invokeGuardedCallback (react-dom.development.js:187)
    at rb (react-dom.development.js:15311)
    at ys (react-dom.development.js:15963)
    at Hs (react-dom.development.js:16561)
    at Ds (react-dom.development.js:16483)
    at Fs (react-dom.development.js:16455)

image

r3wt commented 6 years ago

this was caused by the text field being null in the api response. not really the responsibility of this library to guard against null i guess.