Skip to content

Conversation

@esetnik
Copy link

@esetnik esetnik commented Nov 13, 2020

No description provided.

@esetnik esetnik changed the title rename unsafe lifecycles React v17 Compatibility Nov 13, 2020
if (showOptions) {
document.addEventListener("click", this.toggleCalendarDropdown, false);
document.addEventListener("click", this.toggleCalendarDropdown, {
capture: true

Choose a reason for hiding this comment

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

I can confirm this line fixes the issue. All other changes seem to be cosmetic code styling changes.

Copy link

Choose a reason for hiding this comment

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

It needs to be added on removeEventListener as well.
The UNSAFE_componentWillMount will remove deprecation warning to prepare for react 18

@YakinRojinegro
Copy link

Are you guys going to merge/deploy this one?

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.

4 participants