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

Update PinInput.jsx remove focus from clear #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maxuapro
Copy link

please remove focus from clear

please remove focus from clear
@arunghosh
Copy link
Owner

@maxuapro

Thank you for the contribution :)

The idea behind the focus-on-clear was to set focus on the first element when the values are cleared. Any reason for removing it?

@maxuapro
Copy link
Author

maxuapro commented Aug 24, 2023 via email

@arunghosh
Copy link
Owner

Thank you for the clarification. Your case makes sense. But not sure if it is good to change the existing behavior. I would rather do it via a prop likefocusOnClear and keep the default true.

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

Successfully merging this pull request may close these issues.

2 participants