From 27bbb103dc451e75d510ecb7509674aaa4791e2a Mon Sep 17 00:00:00 2001 From: airyland Date: Wed, 16 Aug 2017 14:56:48 +0800 Subject: [PATCH] inline-calendar: fix on-change event fires twice (Close #1847) --- src/components/inline-calendar/index.vue | 1 - src/components/inline-calendar/metas.yml | 5 +++++ src/demos/InlineCalendar.vue | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) 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 @@