Skip to content

Migrate from Popper.js to Floating UI#11822

Open
delphiactual wants to merge 1 commit into
masterfrom
popper-to-floating-ui
Open

Migrate from Popper.js to Floating UI#11822
delphiactual wants to merge 1 commit into
masterfrom
popper-to-floating-ui

Conversation

@delphiactual

Copy link
Copy Markdown
Contributor

Replace @popperjs/core with @floating-ui/dom. Rewrite the usePopper hook as useFloatingUI using computePosition with offset/flip/shift/arrow middleware, and port the sidecar menu modifier to a Floating UI middleware.

The floating element is now positioned (and anchored at a known origin) before measurement so flipped placements compute correctly. Renames the data-popper-placement attribute to data-placement and clears remaining "popper" naming.

closes #8374

Replace @popperjs/core with @floating-ui/dom. Rewrite the usePopper hook
as useFloatingUI using computePosition with offset/flip/shift/arrow
middleware, and port the sidecar menu modifier to a Floating UI middleware.

The floating element is now positioned (and anchored at a known origin)
before measurement so flipped placements compute correctly. Renames the
data-popper-placement attribute to data-placement and clears remaining
"popper" naming.

ref #8374
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.

Switch from Popper to Floating UI

1 participant