Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom DOM prop for styles when using AnimatePresence with mode === popLayout #2830

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tehbelinda
Copy link

By default this was using document.head, but that is not always available to where it's rendered, e.g. when using the shadow DOM. Instead, pass the shadow root to the new parentDOM prop

Fixes #2508

@dylank
Copy link

dylank commented Oct 24, 2024

Hey @mattgperry, do you know what the process is to get this change merged?

…esence with mode === `popLayout`

By default this was using document.head, but that is not always available to where it's rendered,
e.g. when using the shadow DOM. Instead, pass the shadow root to the new `parentDOM` prop
@tehbelinda tehbelinda force-pushed the tehbelinda/animate-poplayout-shadowdom branch from 88dd5de to 8443249 Compare October 25, 2024 17:10
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.

[BUG] AnimatePresence popLayout mode does not work within a shadow dom
2 participants