Closed ollema closed 1 month ago
I suggest to deprecate and/or remove the activeElement utility and instead refer to the now builtin activeElement binding on <svelte:document>.
activeElement
<svelte:document>
Alternatively, the activeElement could be rewritten to reuse the new builtin binding if you would like to keep it.
Enhancement
https://github.com/sveltejs/svelte/pull/11879
Runed is meant to work outside of Svelte components as well, so we'll keep the utility, but a note in the docs would be helpful.
Describe the feature in detail (code, mocks, or screenshots encouraged)
I suggest to deprecate and/or remove the
activeElement
utility and instead refer to the now builtinactiveElement
binding on<svelte:document>
.Alternatively, the
activeElement
could be rewritten to reuse the new builtin binding if you would like to keep it.What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
https://github.com/sveltejs/svelte/pull/11879