Kiarash-Z/react-modern-calendar-datepicker

After selecting date range I got type error "Unhandled Runtime Error TypeError: Cannot read properties of null (reading 'removeEventListener')"

Opened this issue ยท 16 comments

Describe the bug
A clear and concise description of what the bug is.
image

Reproduced Version on CodeSandbox
Here it is on CodeSandBox: Link

Expected behavior
A clear and concise description of what you expected to happen.

When i'm in the page that i have put my calendar component and i try to go to another page it gives me the same error

I have the same problem, any solution?

Same here. I have a multistep form, and when going to the next case it gives this error.

Hopefully @Kiarash-Z will merge @juji pull request #358 soon, until then, I'm going to use following workaround

    "@taak/react-modern-calendar-datepicker": "^3.1.6-1",

HTH,
Thank you

i am having the same issue as well

i am having the same issue

I am having the same issue. When I select a date I get this error.

Me too, error. Is there a solution?

I've used this, it's ok

"@hassanmojab/react-modern-calendar-datepicker": "^3.1.7"

i am also having the same issue

HmzAli commented

Having the same issue as well. Any work around till this is fixed?

I am also having the same issue when going to the other page

+1

There is an error implementation I went through the repo, there is a useEffect using a reference without checking if it is not null, you can use "@hassanmojab/react-modern-calendar-datepicker": "^3.1.7" instead

@renaldodev is this verified by the creators?

@RezaGhx The creator looks the same the NPM package points to this repository.