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 #22

Closed
hmt opened this issue Feb 22, 2021 · 2 comments
Closed

focus #22

hmt opened this issue Feb 22, 2021 · 2 comments

Comments

@hmt
Copy link

hmt commented Feb 22, 2021

My favourite action:

export const focus = node => node.focus();

as in:

<input type="text" use:focus>
@swyxio
Copy link
Owner

swyxio commented Feb 22, 2021

so basically autofocus?

@hmt
Copy link
Author

hmt commented Feb 23, 2021

Basically yes, but I found this action to work more reliable.

@swyxio swyxio closed this as completed in 5e73298 Mar 1, 2021
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

2 participants