Skip to content

removeEventListener bug#329

Open
HooraOnline wants to merge 1 commit into
Kiarash-Z:masterfrom
HooraOnline:master
Open

removeEventListener bug#329
HooraOnline wants to merge 1 commit into
Kiarash-Z:masterfrom
HooraOnline:master

Conversation

@HooraOnline

Copy link
Copy Markdown

removeEventListener remove bug

removeEventListener remove bug
@HooraOnline
HooraOnline requested a review from Kiarash-Z as a code owner July 5, 2022 12:33
@TheElegantCoding

Copy link
Copy Markdown

this error is happend to me in an app pls need a fix

@franfdezmorales

Copy link
Copy Markdown

Hey @Kiarash-Z, could you take a look into this? Thank you.

Comment thread src/Calendar.js
return () => {
calendarElement.current.removeEventListener('keyup', handleKeyUp, false);
calendarElement.current && calendarElement.current.removeEventListener('keyup', handleKeyUp, false);
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you save the current element in some constant. ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants