-
Notifications
You must be signed in to change notification settings - Fork 771
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] Double invocation of onClick #19
Comments
Hello there, @jekusz , Thank you for your interest in working with our products.
And
Alternatively, you can change the following code from:
to:
And the following codes:
To:
Best, |
I suppose the reason for the issue are the tags inside the elements. Though deleting them will remove some of the functionality they carry ? I like the preventDefault option better until it gets a good fix. Thanks! |
Version
1.1.0
Reproduction link
https://demos.creative-tim.com/black-dashboard-react/#/admin/dashboard
Operating System
windows
Device
pc
Browser & Version
Chrome Version 81.0.4044.113
Steps to reproduce
On the template dashboard click either of Accounts Purchases or Sessions
Debug the onClick handler and observe that on each of these buttons it fires twice
What is expected?
The onClick function should be invoked once
What is actually happening?
The onClick function is invoked twice
Solution
Removing input from inside the button component removes the problem but it also removes ui
Additional comments
The text was updated successfully, but these errors were encountered: