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 support for AnimatePresence when using shadow DOM #2830

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tehbelinda
Copy link

@tehbelinda tehbelinda commented Oct 11, 2024

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. In such cases, this change allows for the shadow root to be passed to the new parentDOM prop. This change is backwards compatible since we default to document.head when not specified.

Fixes #2508

@dylank
Copy link

dylank commented Oct 24, 2024

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

@tehbelinda tehbelinda force-pushed the tehbelinda/animate-poplayout-shadowdom branch from 88dd5de to 8443249 Compare October 25, 2024 17:10
…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 8443249 to c1f485c Compare October 26, 2024 14:37
@tehbelinda
Copy link
Author

hi @mattgperry the pipeline is passing and I just updated the latest conflicts on the CHANGELOG, let me know if you are able to review and approve this or is there someone else I should ping? thanks!

@dylank
Copy link

dylank commented Nov 11, 2024

@kurtextrem is this something you can help with?

@tehbelinda tehbelinda changed the title Add custom DOM prop for styles when using AnimatePresence with mode === popLayout Add support for AnimatePresence when using shadow DOM Nov 11, 2024
@connormdavis
Copy link

@SaeWooKKang @mattgperry this is a blocker for me would be huge to get this merged 🙏

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
3 participants