From 17da8696952f2afff7a73cc08edce0ad8f8dcb52 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 25 Nov 2020 11:48:53 +0300 Subject: [PATCH] Fixed #659 - Multiselect/Dropdown: when the menu open upwards style broken --- src/components/dropdown/Dropdown.vue | 8 +++----- src/components/multiselect/MultiSelect.vue | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index 394c2b317a..7a1c317639 100755 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -103,11 +103,6 @@ export default { } this.overlay = null; }, - updated() { - if (this.overlayVisible && this.filterValue) { - this.alignOverlay(); - } - }, methods: { getOptionLabel(option) { return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option; @@ -464,6 +459,9 @@ export default { }, onFilterChange(event) { this.$emit('filter', {originalEvent: event, value: event.target.value}); + if (this.overlayVisible) { + this.alignOverlay(); + } }, overlayRef(el) { this.overlay = el; diff --git a/src/components/multiselect/MultiSelect.vue b/src/components/multiselect/MultiSelect.vue index 5862d6e3e4..f64ae9db7b 100755 --- a/src/components/multiselect/MultiSelect.vue +++ b/src/components/multiselect/MultiSelect.vue @@ -126,11 +126,6 @@ export default { } this.overlay = null; }, - updated() { - if (this.overlayVisible && this.filterValue) { - this.alignOverlay(); - } - }, methods: { getOptionLabel(option) { return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option; @@ -410,6 +405,9 @@ export default { }, onFilterChange(event) { this.$emit('filter', {originalEvent: event, value: event.target.value}); + if (this.overlayVisible) { + this.alignOverlay(); + } }, overlayRef(el) { this.overlay = el;