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 Issue: Focus is on first H1 with black border #48

Closed
matthiaslischka opened this issue Oct 20, 2021 · 1 comment
Closed

Focus Issue: Focus is on first H1 with black border #48

matthiaslischka opened this issue Oct 20, 2021 · 1 comment

Comments

@matthiaslischka
Copy link

I have this weird bug where as soon as I add svelte-navigator to my page the focus is messed up.

The focus is on the first H1 which gets an ugly black border. Even an input with autofocus or onMount(() => myInput.focus()); won't take away the focus...

image
Reproduce here: https://svelte.dev/repl/5c7cd0c49b2f47ac8532ab87e745cd95

I'm just wondering if I do something wrong here.

BR Matthias

@matthiaslischka
Copy link
Author

matthiaslischka commented Oct 20, 2021

Closed. Sry. Duplicate of #10
I still think that the autofocus or onMount(() => myInput.focus()); should win over the navigator focus management.
But I just add primary={false} to my route for now. Sry again. I don't know why I did not find this issue before. I did look at the closed ones. 🤷‍♂️

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

No branches or pull requests

1 participant