Skip to content

Commit

Permalink
fix(mdc-radio): Add 'checked' watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
lampy authored and stasson committed Jul 16, 2018
1 parent 5358058 commit 8fbafcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/radio/mdc-radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default {
}
},
watch: {
checked: 'setChecked',
disabled(value) {
this.foundation.setDisabled(value)
}
Expand Down Expand Up @@ -122,6 +123,9 @@ export default {
this.foundation.destroy()
},
methods: {
setChecked(checked) {
this.foundation.setChecked(checked)
},
isChecked() {
return this.foundation.isChecked()
},
Expand Down

0 comments on commit 8fbafcb

Please sign in to comment.