-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves issue with using the DnD HOC where components are not receiving state updates #2359
- Loading branch information
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fd02261
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broke our custom
onSelectEvent
callback. We have the following code for a drag and drop calendar:Which uses a MUI popover that requires setting the anchor element to an event that was clicked. However, using the
event.currentTarget
variable is giving the following MUI warningWhich causes the following behavior after clicking an event
fd02261
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realized from the docs that we now need to memoize our components prop