Fixed #659 - Multiselect/Dropdown: when the menu open upwards style broken

pull/682/head
Cagatay Civici 2020-11-25 11:48:53 +03:00
parent 6426f6b533
commit 17da869695
2 changed files with 6 additions and 10 deletions

View File

@ -103,11 +103,6 @@ export default {
} }
this.overlay = null; this.overlay = null;
}, },
updated() {
if (this.overlayVisible && this.filterValue) {
this.alignOverlay();
}
},
methods: { methods: {
getOptionLabel(option) { getOptionLabel(option) {
return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option; return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
@ -464,6 +459,9 @@ export default {
}, },
onFilterChange(event) { onFilterChange(event) {
this.$emit('filter', {originalEvent: event, value: event.target.value}); this.$emit('filter', {originalEvent: event, value: event.target.value});
if (this.overlayVisible) {
this.alignOverlay();
}
}, },
overlayRef(el) { overlayRef(el) {
this.overlay = el; this.overlay = el;

View File

@ -126,11 +126,6 @@ export default {
} }
this.overlay = null; this.overlay = null;
}, },
updated() {
if (this.overlayVisible && this.filterValue) {
this.alignOverlay();
}
},
methods: { methods: {
getOptionLabel(option) { getOptionLabel(option) {
return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option; return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
@ -410,6 +405,9 @@ export default {
}, },
onFilterChange(event) { onFilterChange(event) {
this.$emit('filter', {originalEvent: event, value: event.target.value}); this.$emit('filter', {originalEvent: event, value: event.target.value});
if (this.overlayVisible) {
this.alignOverlay();
}
}, },
overlayRef(el) { overlayRef(el) {
this.overlay = el; this.overlay = el;