dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
180 stars 33 forks source link

binding to a boolean property (1.0-rc.2) #615

Closed dam0vm3nt closed 9 years ago

dam0vm3nt commented 9 years ago

Binding to disabled property of a paper-button with a non null bool value will cause the button to appear always in disabled state regardless of the property value (true or false):

<paper-button id="but" disabled="{{isButtonDisabled}}"></paper-button>

Setting the property manually from dart ($["but"].disabled = isButtonDisabled) will work.

Don't know if this is a bug in polymer , polymer-dart or polymer-elements.

dam0vm3nt commented 9 years ago

ignore this.