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
Disabled button with span inside triggers click event #2902
Comments
I was able to reproduce the issue in Edge |
fixed in DevExpress/testcafe-hammerhead#1880 |
@AlexKamaev I am not sure if this fix is correct. Let me show you the example: In the very simple case your fix is correct. No console log is called when the button is clicked (and it behaves the same in TestCafe):
On the other hand, when the disabled button contains any other element, the click events are called (but not in TestCafe!):
|
@palpatine1991 |
I'll mark this issue as a duplicate since we have similar issue in the |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
Are you requesting a feature or reporting a bug?
Bug.
What is the current behavior?
When you have disabled native button with
span
element inside, the click event is triggered in IE and Edge browsers.What is the expected behavior?
Click event should not be triggered when a button is disabled.
How would you reproduce the current behavior (if this is a bug)?
Provide the test code and the tested page URL (if applicable)
Specify your
0.20.1
8.9.4
The text was updated successfully, but these errors were encountered: