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

Button element on-click event fires when disabled attribute is set. (Polymer) #14012

Closed
DartBot opened this issue Oct 11, 2013 · 3 comments
Closed

Comments

@DartBot
Copy link

DartBot commented Oct 11, 2013

This issue was originally filed by Cooltomme@gmail.com


What steps will reproduce the problem?

  1. Create a new Polymer project from Dart Editor wizard
  2. In clickcounter.html change the <button> element to look like this:

<button disabled="disabled" on-click="increment">Click me
  <img src="https://www.dartlang.org/imgs/dart-logo.png">
</button>

  1. Start the project, and click on the button.

What is the expected output?
The button should be completely disabled. No on-click event should ever fire no matter where we click on the button.

What do you see instead?
When you click on the Dart logo the on-click event fires and the counter increments - BAD!.
When you click on the "Click me" text, the on-click event does not fire - GOOD!.

What version of the product are you using? On what operating system?
Dart Editor version 0.8.1_r28355
Dart SDK version 0.8.1.2_r28355
Slackware64 14.0

@DartBot
Copy link
Author

DartBot commented Oct 11, 2013

This comment was originally written by thomas.granv...@gmail.com


I'm experiencing the same thing.

@kasperl
Copy link

kasperl commented Oct 14, 2013

Added Area-Polymer, Triaged labels.

@jmesserly
Copy link

good catch! I added a note here:
Polymer/polymer#208


Added MovedToGithub label.

This issue was closed.
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

No branches or pull requests

4 participants