Buttons to have focus event #459
Labels
help wanted
Open to contributions
Svelte 5 Roadmap
This issue is planned to be addressed or fixed when the library migrates to Svelte 5.
Describe the feature in detail (code, mocks, or screenshots encouraged)
Html buttons have focus event fires when an element has received focus. Currently one is not able to listen to on:focus event on a button.
example of on:focus
<button on:focus={handleButtonFocused}>...</button>
or event forward the focus event<button on:focus>...</button>
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
component concerned: https://www.bits-ui.com/docs/components/button
example of focus event in svelte: https://svelte.dev/repl/dbeabf42636545b3a8dc6ebe84c2d98c?version=3.17.3
The text was updated successfully, but these errors were encountered: