Skip to content

Commit

Permalink
checker: Fix event:on-change do not fire when using :value binding in…
Browse files Browse the repository at this point in the history
…stead of v-model (fix #1945)
  • Loading branch information
airyland committed Sep 12, 2017
1 parent c568800 commit 2ef24d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/checker/checker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export default {
watch: {
value (newValue) {
this.currentValue = newValue
this.$emit('on-change', newValue)
},
currentValue (val) {
this.$emit('input', val)
this.$emit('on-change', val)
}
},
data () {
Expand Down
5 changes: 5 additions & 0 deletions src/components/checker/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ checker-item:
en: emits when current checker-item is clicked
zh-CN: 当前项被点击时触发
changes:
next:
en:
- '[fix] Fix event:on-change do not fire when using :value binding instead of v-model #1945'
zh-CN:
- '[fix] 修复 on-change 事件 在使用 :value 绑定的情况下不触发 #1945'
v2.3.8:
en:
- '[enhance] clear value when selected item is disabled #1479'
Expand Down

0 comments on commit 2ef24d6

Please sign in to comment.