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

Disabled attribute won't update after toggled #10

Closed
cognitom opened this issue Aug 29, 2015 · 1 comment
Closed

Disabled attribute won't update after toggled #10

cognitom opened this issue Aug 29, 2015 · 1 comment
Labels

Comments

@cognitom
Copy link
Owner

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 cognitom added the bug label Aug 29, 2015
cognitom added a commit that referenced this issue Aug 29, 2015
@cognitom
Copy link
Owner Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant