Open j-hannes opened 5 years ago
Seems there is some argument over it, https://github.com/sveltejs/svelte/issues/6629, because it is not browser-native (it is handled by Svelte explicitly calling focus
). The solutions are server-side rendering and letting the browser handle it, or else carefully customizing behavior based on device characteristics like in https://github.com/huggingface/chat-ui/pull/183. But mostly, it should just be disabled by adding <!-- svelte-ignore a11y-autofocus -->
When running the application, a warning appears in the console: