diff --git a/src/components/inline-calendar/index.vue b/src/components/inline-calendar/index.vue index 4fc109a29..e7a699473 100755 --- a/src/components/inline-calendar/index.vue +++ b/src/components/inline-calendar/index.vue @@ -261,7 +261,6 @@ export default { this.render(this.year, this.month, value) } this.$emit('input', this.currentValue) - this.$emit('on-change', this.currentValue) }, showChild (year, month, child) { if (this.replaceText(child.day, this.formatDate(year, month, child))) { diff --git a/src/components/inline-calendar/metas.yml b/src/components/inline-calendar/metas.yml index 4baa5851b..af5e394d8 100755 --- a/src/components/inline-calendar/metas.yml +++ b/src/components/inline-calendar/metas.yml @@ -97,6 +97,11 @@ events: en: emits when value is changed zh-CN: 值变化时触发 changes: + next: + en: + - '[fix] fix on-change event fires twice #1847' + zh-CN: + - '[fix] 修复 on-change 事件触发两次问题 #1847' v2.5.5: en: - '[feature] support multi select #1446 #1467' diff --git a/src/demos/InlineCalendar.vue b/src/demos/InlineCalendar.vue index 1a02aee0e..ee13dd606 100755 --- a/src/demos/InlineCalendar.vue +++ b/src/demos/InlineCalendar.vue @@ -1,6 +1,7 @@