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

Unable setup tab Index to Confirm/Cancel button on opening #29

Open
AbhaysinghBhosale opened this issue Jul 1, 2019 · 2 comments
Open

Comments

@AbhaysinghBhosale
Copy link

Have used react-confirm-alert package in my project and want users to use most of the functionalities using the keyboard only.

When users click on save button we shows then confirm dialogue but this need to be click on Confirm button using mouse and users are unable to use the keyboard.

Please can anyone let me know the any props and other solution available to solve this issue and set tab Index for the buttons in confirm box

@GA-MO
Copy link
Owner

GA-MO commented Jul 11, 2019

@AbhaysinghBhosale
Did you have the solution to fix this yet?

@AbhaysinghBhosale
Copy link
Author

there is not any solution from the library but i have managed it by adding "autoFocus="true"" attribute to the confirm button. So not confirm button can be pressed by Enter key

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