-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Popover: make more reactive to prop changes, avoid unnecessary updates (
#43335) * Arow ref as a callback ref calling update() * Reference ref and ownerDoc as internal state, compute under the same useLayoutEffect * use whileElementsMounted for auto-updating reference * Extract getReferenceOwnerDocument amd getReferenceElement to separate utils functions * Move useLayoutEffect after calling floating ui, remove need for referenceElement to be stored in state * Animate only when opening the popover * Storybook: improve examples * CHANGELOG * scrollIntoView instead of focus * Add iframeOffset to arrow position
- Loading branch information
Showing
4 changed files
with
206 additions
and
115 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
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
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
Oops, something went wrong.