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

close() useCallback does not work with the button spacebar #27

Open
yamanoku opened this issue Aug 29, 2021 · 1 comment
Open

close() useCallback does not work with the button spacebar #27

yamanoku opened this issue Aug 29, 2021 · 1 comment

Comments

@yamanoku
Copy link
Contributor

What's happen ?

The <button> element can be operated in the same way with the space key as well as the enter key.
But, the <button> element set in the useCallback close() does not respond to the space key.

Demo Video

Enter Key

Screen.Recording.2021-08-29.at.17.23.55.mov

Spacebar Key

Screen.Recording.2021-08-29.at.17.24.28.mov
@yuki0410-dev
Copy link

@yamanoku
Maybe disable-scroll is the cause. (source)

When I open a modal and then give Hidden CSS Style to the modal, the spacebar doesn't respond to the button.

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