cognitom / riot-bootstrap

Bootstrap-like Components for Riot.js
http://cognitom.github.io/riot-bootstrap/
136 stars 11 forks source link

Disabled attribute won't update after toggled #10

Closed cognitom closed 9 years ago

cognitom commented 9 years ago

Once disabled, the attribute never be updated, with latest Riot. The example below should toggle each other:

 <btn-group>
  <btn onpush={ toggle } disabled={ isOn }>Turn On</btn>
  <btn onpush={ toggle } disabled={ !isOn }>Turn Off</btn>
</btn-group>
<script>
  this.isOn = false
  toggle (e) {
    this.isOn = !this.isOn
  }
</script>
cognitom commented 9 years ago

Fixed.