Skip to content

Add support for slotted elements (fixes #916) #917

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

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

Conversation

Remiscan
Copy link

@Remiscan Remiscan commented Apr 5, 2025

If the target is slotted into a shadow DOM, then it may have scrollable ancestors in that shadow DOM.

By using the assigned slot instead of the parent element (if it has one), we can properly scroll the slot's ancestors before going up through the shadow root's ancestors.

This simple change seems to be enough to fix #916

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant