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

[BUG] - <Button> onClick handler is not triggered by keyboard #426

Closed
alyrik opened this issue Apr 22, 2022 · 6 comments · Fixed by #447 or #465
Closed

[BUG] - <Button> onClick handler is not triggered by keyboard #426

alyrik opened this issue Apr 22, 2022 · 6 comments · Fixed by #447 or #465
Assignees
Labels
🐛 Type: Bug Something isn't working

Comments

@alyrik
Copy link

alyrik commented Apr 22, 2022

Describe the bug

onClick handler is not triggered when activating <Button> with keyboard.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Go to any page with <Button> component.
  2. Set focus on <Button> (for example, by tabbing).
  3. Press Spacebar or Enter key.
  4. onClick handler is not triggered, however button shows ":active" state.

Expected behavior

onClick handler is triggered as it normally happens for <button> element in React.

Screenshots or Videos

No response

Operating System Version

MacOS

Browser

Chrome

@alyrik alyrik added the 🐛 Type: Bug Something isn't working label Apr 22, 2022
@nanthony007
Copy link

Having this issue today as well.

@plepisnew
Copy link

still having this issue

Browser: Firefox
@nextui-org/react ^2.1.13

@Ninjaneer87
Copy link

Same here

Browser: Brave and Chrome
MacOS
@nextui-org/react ^2.1.8

@BasitAli
Copy link

BasitAli commented Apr 8, 2024

Given that the issue has popped up again in the version 2, should we reopen the issue?

@wingkwong wingkwong reopened this Apr 8, 2024
@wingkwong wingkwong self-assigned this Apr 8, 2024
@wingkwong
Copy link
Member

Able to reproduce. will take a look.

@wingkwong
Copy link
Member

Closing - no longer reproducible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants