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

Focus (document.activeElement) gets lost when using bind:clientWidth #3206

Closed
dalemartyn opened this issue Jul 9, 2019 · 1 comment · Fixed by #3210
Closed

Focus (document.activeElement) gets lost when using bind:clientWidth #3206

dalemartyn opened this issue Jul 9, 2019 · 1 comment · Fixed by #3210
Labels

Comments

@dalemartyn
Copy link
Contributor

dalemartyn commented Jul 9, 2019

When tabbing through UI, the focus gets lost inside the <object> created to track the size of the element.

Example:

https://svelte.dev/repl/f8b72fe0b5464edda16b0ef7a60ef88d?version=3.6.5

Screen Shot 2019-07-09 at 10 27 53

@creaven
Copy link

creaven commented Jul 9, 2019

tabindex=-1 on object element seems should fix it

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

Successfully merging a pull request may close this issue.

3 participants