react-modern-calendar-datepicker icon indicating copy to clipboard operation
react-modern-calendar-datepicker copied to clipboard

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

Open nijandhanj opened this issue 2 years ago • 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.

nijandhanj avatar Jun 02 '23 10:06 nijandhanj

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

Flori1234657 avatar Jun 02 '23 22:06 Flori1234657

I have the same problem, any solution?

Amirhossein-Esfahanian avatar Jun 08 '23 07:06 Amirhossein-Esfahanian

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

mcgreenwood avatar Jun 20 '23 16:06 mcgreenwood

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

SidMorad avatar Jun 27 '23 13:06 SidMorad

i am having the same issue as well

Partiya avatar Jun 27 '23 17:06 Partiya

i am having the same issue

nicolasg0010 avatar Jul 20 '23 19:07 nicolasg0010

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

sm-khosravi avatar Aug 30 '23 07:08 sm-khosravi

Me too, error. Is there a solution?

Jojokristiadi avatar Oct 16 '23 00:10 Jojokristiadi

I've used this, it's ok

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

sm-khosravi avatar Oct 16 '23 06:10 sm-khosravi

i am also having the same issue

SultaniGithub avatar Oct 21 '23 04:10 SultaniGithub

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

HmzAli avatar Oct 28 '23 11:10 HmzAli

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

Mohammadkhoushechin avatar Nov 08 '23 15:11 Mohammadkhoushechin

+1

mohsenasm avatar Nov 08 '23 16:11 mohsenasm

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 avatar Nov 14 '23 20:11 renaldodev

@renaldodev is this verified by the creators?

RezaGhx avatar Nov 18 '23 13:11 RezaGhx

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

renaldodev avatar Nov 19 '23 02:11 renaldodev