We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On touch screens on-tap functions will still fire on disabled buttons
http://jsbin.com/yeloki/edit
my-element
Nothing happens
The tap function will fire
The text was updated successfully, but these errors were encountered:
I don't know i've built cordova apps using v1.7.0 and have not faced this issue.
v1.7.0
But here are some simple workarounds for you to use:
Add a simple css
button[disabled] { pointer-events: none; }
Change on-tap to on-click
on-tap
on-click
FYI, in your bin you are using Polymer 2.x instead of 1.9.1 as mentioned.
2.x
1.9.1
Sorry, something went wrong.
This should be rather easy to fix by checking the disabled property of the element we are about to dispatch the tap to.
disabled
tap
Handle disabled attribute correctly for tap gesture
5c0f3e6
Fixes #4685
dfreedm
No branches or pull requests
Description
On touch screens on-tap functions will still fire on disabled buttons
Live Demo
http://jsbin.com/yeloki/edit
Steps to Reproduce
my-element
which has a button in itExpected Results
Nothing happens
Actual Results
The tap function will fire
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: