react-modern-calendar-datepicker
react-modern-calendar-datepicker copied to clipboard
TypeError: Cannot read property 'removeEventListener' of null
Describe the bug A clear and concise description of what the bug is. I used a drawer to insert new data, and the data consists of a date range. Once I successfully saved the data, I need to close the drawer, but then the error shows up. I think its related with the library, need to check whether the listener has been removed or not.
Reproduced Version on CodeSandbox I will provide one when I have time to put it on sandbox
Expected behavior A clear and concise description of what you expected to happen. After I saved the data, I close the drawer and everything should works fine.
same issue here on react ver.17
did you find any solution for this? Same problem here
I have the same issue when loading the page. Any solutions?
Duplicate of #204
Uncaught TypeError: Cannot read property 'removeEventListener' of null this error is pointing [ react-modern-calendar-datepicker ]
please help me
This link was helpful for me https://github.com/Kiarash-Z/react-modern-calendar-datepicker/issues/204
current?.removeEventListener try this question mark it will remove the error