Open rachanabasnet1 opened 2 years ago
I am too facing this issue, Is your react app version is 18
I am too facing this issue, Is your react app version is 18
Yes, my react app version is 18.0.0
The Issue seems to appear only in React18.
Did you get any fix for that yet?
I am currently using multiselect-react-dropdown version 2.0.21 and react version 18.0.0. I integrated a multi-select dropdown in one of the forms and when I try to leave the page where the multi-select component is integrated and "TypeError: Cannot read properties of null (reading 'removeEventListener') at Multiselect.componentWillUnmount" error pops up on the console and the screen goes blank.
<Multiselect options={options} name="particulars" onSelect={onSelectParticulars} onRemove={onRemoveParticulars} displayValue="name" closeIcon="cancel" placeholder="Select Particulars" selectedValues={particulars} className="multiSelectContainer" />
This is the error I received on the console: