react-modern-calendar-datepicker
react-modern-calendar-datepicker copied to clipboard
Cannot read properties of null (reading 'removeEventListener') at index.js:1
index.js:1 Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener') at index.js:1 at HTMLUnknownElement.callCallback (react-dom.development.js:3945) at Object.invokeGuardedCallbackDev (react-dom.development.js:3994) at invokeGuardedCallback (react-dom.development.js:4056) at flushPassiveEffectsImpl (react-dom.development.js:23543) at unstable_runWithPriority (scheduler.development.js:468) at runWithPriority$1 (react-dom.development.js:11276) at flushPassiveEffects (react-dom.development.js:23447) at performSyncWorkOnRoot (react-dom.development.js:22269) at react-dom.development.js:11327 at unstable_runWithPriority (scheduler.development.js:468) at runWithPriority$1 (react-dom.development.js:11276) at flushSyncCallbackQueueImpl (react-dom.development.js:11322) at flushSyncCallbackQueue (react-dom.development.js:11309) at scheduleUpdateOnFiber (react-dom.development.js:21893) at dispatchAction (react-dom.development.js:16139) at Header.jsx:21
this error occurs when the date picker component is removed from Dom
index.js:1 Uncaught TypeError: Cannot read properties of null (reading 'removeEventListener') at index.js:1 at HTMLUnknownElement.callCallback (react-dom.development.js:3945) at Object.invokeGuardedCallbackDev (react-dom.development.js:3994) at invokeGuardedCallback (react-dom.development.js:4056) at flushPassiveEffectsImpl (react-dom.development.js:23543) at unstable_runWithPriority (scheduler.development.js:468) at runWithPriority$1 (react-dom.development.js:11276) at flushPassiveEffects (react-dom.development.js:23447) at performSyncWorkOnRoot (react-dom.development.js:22269) at react-dom.development.js:11327 at unstable_runWithPriority (scheduler.development.js:468) at runWithPriority$1 (react-dom.development.js:11276) at flushSyncCallbackQueueImpl (react-dom.development.js:11322) at flushSyncCallbackQueue (react-dom.development.js:11309) at scheduleUpdateOnFiber (react-dom.development.js:21893) at dispatchAction (react-dom.development.js:16139) at Header.jsx:21
this error occurs when the date picker component is removed from Dom
check here: https://github.com/Kiarash-Z/react-modern-calendar-datepicker/issues/286#issuecomment-927020181
Any update on this bug? I am having the same error.
Any update on this bug? I am having the same error too. Just made all as in getting started
This appears when I select a date.
Any update on this bug? I am having the same error too. Just made all as in getting started
This appears when I select a date.
You can either downgrade to react 16 or Fix the library by yourself or use my forked version.
https://github.com/amir04lm26/react-modern-calendar-date-picker
The above link refers to my forked version, You need to run this command and copy the lib folder to your project as a local 3rd party library.
npm i && npm run build
Hi @amir04lm26 , Your forked version is working smoothly and seems there is no bugs. do you have any plans on releasing a npm package? at least until main team fix occurred bugs and release new version of their own package
Hi @amir04lm26 , Your forked version is working smoothly and seems there is no bugs. do you have any plans on releasing a npm package? at least until main team fix occurred bugs and release new version of their own package
Hi Rezaabdi78, As you had requested, I've published the forked version that fixes the compatibility with react v17 and, here's the package: https://www.npmjs.com/package/@amir04lm26/react-modern-calendar-date-picker
Is this package abandoned?
Hi @amir04lm26 , Your forked version is working smoothly and seems there is no bugs. do you have any plans on releasing a npm package? at least until main team fix occurred bugs and release new version of their own package
Hi Rezaabdi78, As you had requested, I've published the forked version that fixes the compatibility with react v17 and, here's the package: https://www.npmjs.com/package/@amir04lm26/react-modern-calendar-date-picker
God bless you 👍 ❤️