Skip to content

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
Development

Successfully merging this pull request may close these issues.

Scrollable containers in shadow DOM are ignored if they are parents of the slots into which the target was slotted
1 participant