-
Notifications
You must be signed in to change notification settings - Fork 267
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
[VueJs]disabled button are still clickable #572
Comments
Hello @mehdijouan, Try to use the semantic I modified your snippet to And counter is not more increased. Regards, |
P.S. looks like the view fires the To be honest, this sounds strange to me as even the native HTML Button does not fire the click event if the button is disabled. https://jsbin.com/sokuwixoja/edit?html,output Thanks for reporting! We were just thinking if we need this |
Press works fine, thanks for the hint! |
add pointer-events: none to host component so in case it is disabled, the browser does not call click handlers registered to it. add chai for better assertion messages * move click handler to shadow dom this way, the component can handle the click first and then the app handler will have the correct component state in its click handler * remove event-related qunit tests With click handlers registered in the shadow dom, the qunit tests can no longer simulate events correctly. For these scenarios, the wdio tests will be used anyway. * fix ie11 mousedown problem in IE11 remove disabled check, CSS takes care of that Fixes: #572
@mehdijouan we have removed all obstacles and are going to deprecate the press event in favour of click. With the next release, click should no longer be fired for disabled buttons so feel free to switch to using it as the recommended way. |
Describe the bug
disabled buttons are still clickable
To reproduce
Steps to reproduce the behavior:
Expected behavior
nothing should happen when button is disabled
Context
Affected components (if known)
ui5-button
The text was updated successfully, but these errors were encountered: