From 20d49bf97f6d1f9eb59f5be2627f2203d8b29a45 Mon Sep 17 00:00:00 2001 From: rex Date: Sat, 15 Feb 2020 23:36:16 +0800 Subject: [PATCH] fix(DropdownItem): emit close while change item (#2766) fix #2582 --- packages/dropdown-item/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dropdown-item/index.ts b/packages/dropdown-item/index.ts index 6e6853be..b8ace9ed 100644 --- a/packages/dropdown-item/index.ts +++ b/packages/dropdown-item/index.ts @@ -78,6 +78,7 @@ VantComponent({ const shouldEmitChange = this.data.value !== value; this.setData({ showPopup: false, value }); + this.$emit('close'); setTimeout(() => { this.setData({ showWrapper: false });