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

fix: disable click events for disabled ui5-button #586

Merged
merged 6 commits into from Jun 26, 2019

Conversation

pskelin
Copy link
Contributor

@pskelin pskelin commented Jun 25, 2019

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

switch click handler to shadow dom so it runs before the application click handler

add tests for click for ui5-button and ui5-togglebutton

Fixes: #572

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
ilhan007
ilhan007 previously approved these changes Jun 25, 2019
this way, the component can handle the click first and then the app handler
will have the correct component state in its click handler
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.
- remove disabled check, CSS takes care of that
@pskelin pskelin merged commit 387fa9a into master Jun 26, 2019
@vladitasev vladitasev deleted the no-click-disabled-button branch July 2, 2019 06:42
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

Successfully merging this pull request may close these issues.

[VueJs]disabled button are still clickable
3 participants