Skip to content

Conversation

@HooraOnline
Copy link

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

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

@franfdezmorales
Copy link

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

return () => {
calendarElement.current.removeEventListener('keyup', handleKeyUp, false);
calendarElement.current && calendarElement.current.removeEventListener('keyup', handleKeyUp, false);
};

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