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] - Event Click on screens (sm or md) does not work #4469

Closed
fabjiro opened this issue Dec 30, 2024 · 2 comments
Closed

[BUG] - Event Click on screens (sm or md) does not work #4469

fabjiro opened this issue Dec 30, 2024 · 2 comments

Comments

@fabjiro
Copy link

fabjiro commented Dec 30, 2024

NextUI Version

2.6.X

Describe the bug

Hi NextUi team,i found a bug. It is in the onClick event of any html element, that is to say when you click on any html element you don't hear the onClick event.

This only happens in sm, md screens (only in these sizes I have tested them).

Note: I read the documentation thinking that the installation method had been changed, but it seems to be ok.

  • In this video we can see in the case of version 2.4.6 that the onClick event works on screens (sm or md).
record-2024-12-30_16.47.17.mp4
  • And in this video we can see that version 2.6.10 the onClick event on screens (sm or md) no longer works
record-2024-12-30_16.44.58.mp4

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

-Open the developer tools
-Adapt dimensions to a device (sm or md)
-Click on any Onclick event and it is not fired

Expected behavior

onClick events should work on sm or md screens.

Screenshots or Videos

No response

Operating System Version

  • OS [Linux, Windows, Android]

Browser

Chrome

Copy link

linear bot commented Dec 30, 2024

@wingkwong
Copy link
Member

you need to use onPress. See #4292 (comment)

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