From 2fbd4b37ea30e3c7b470a73c24e6eb9943634d89 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 20 Dec 2020 15:15:23 +0800 Subject: [PATCH] hide sheet after user have selected a item --- src/components/mobile/ColorSelectionSheet.vue | 1 + src/components/mobile/IconSelectionSheet.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/mobile/ColorSelectionSheet.vue b/src/components/mobile/ColorSelectionSheet.vue index 1fac6b37..78df41a8 100644 --- a/src/components/mobile/ColorSelectionSheet.vue +++ b/src/components/mobile/ColorSelectionSheet.vue @@ -61,6 +61,7 @@ export default { onColorClicked(colorInfo) { this.currentValue = colorInfo.color; this.$emit('input', this.currentValue); + this.$emit('update:show', false); }, onSheetOpen() { this.currentValue = this.value; diff --git a/src/components/mobile/IconSelectionSheet.vue b/src/components/mobile/IconSelectionSheet.vue index 30e28f37..cca8a54b 100644 --- a/src/components/mobile/IconSelectionSheet.vue +++ b/src/components/mobile/IconSelectionSheet.vue @@ -75,6 +75,7 @@ export default { onIconClicked(iconInfo) { this.currentValue = iconInfo.id; this.$emit('input', this.currentValue); + this.$emit('update:show', false); }, onSheetOpen() { this.currentValue = this.value;