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

Enable focus on clear #48

Open
joaopgsilva opened this issue Jul 12, 2022 · 1 comment
Open

Enable focus on clear #48

joaopgsilva opened this issue Jul 12, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@joaopgsilva
Copy link

Is there a way to focus the first box on clear?

In the controllable example https://codesandbox.io/s/controllable-32dfy when filling a value and clearing I would like to have the first box focused again so I could start writing a code immediately again.
Is this possible?

@ugogo
Copy link
Owner

ugogo commented Jul 12, 2022

Hey @joaopgsilva,

IMO, in order to do this, the component should accept a custom ref
You'll then be able to manually trigger the focus

Is this something you would like to work on?

@ugogo ugogo added enhancement New feature or request good first issue Good for newcomers labels Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants