PolymerElements / paper-button

A button à la Material Design
https://www.webcomponents.org/element/PolymerElements/paper-button
138 stars 64 forks source link

Cancel tap event #150

Closed govis closed 7 years ago

govis commented 7 years ago

Description

Need to suppress the default IronButtonState tap handler to manually control toggle button's active state. Setting event.preventDefault(); appears to have no effect.

paper-button version 2.0.0 (2.0-preview)

Expected outcome

No change in button color

Actual outcome

Button changes color

Live Demo

http://jsbin.com/dotekucewe/edit?html,console,output

Steps to reproduce

Click the button

Browsers Affected

govis commented 7 years ago

Being able to data-bind the active attribute as per #166 would be more useful.