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

fix: Custom Elements support for getActiveElement #6653

Closed
wants to merge 2 commits into from
Closed

fix: Custom Elements support for getActiveElement #6653

wants to merge 2 commits into from

Conversation

vtsvetkov-splunk
Copy link
Contributor

@vtsvetkov-splunk vtsvetkov-splunk commented Jan 15, 2024

Before changes:

Focusing shadowRooted input vs regular input
image

After changes:
image

Unfortunately, that would not work if shadowRoot has closed mode. In this case internals of the custom element is not accessible via an external document.

The issue is described here: Shadow DOM v1 - Self-Contained Web Components.

Should we check recursively?

Resolves #6652

vtsvetkov-splunk

This comment was marked as off-topic.

@vtsvetkov-splunk vtsvetkov-splunk changed the title fix: Custom Elemennts support for getActiveElement fix: Custom Elements support for getActiveElement Jan 22, 2024
@squidfunk
Copy link
Owner

Superseded by be95f49 – a simpler implementation. Tagged you as a co-author, @vtsvetkov-splunk .

@squidfunk squidfunk closed this Jan 24, 2024
@squidfunk squidfunk mentioned this pull request Jan 24, 2024
4 tasks
@squidfunk
Copy link
Owner

Released as part of 9.5.5.

@squidfunk squidfunk reopened this Jan 24, 2024
@squidfunk squidfunk closed this Jan 24, 2024
@vtsvetkov-splunk vtsvetkov-splunk deleted the fix/custom-element-focus branch January 29, 2024 20:34
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.

Add support for Custom Element
2 participants