Skip to content

Commit

Permalink
Fixed #659 - Multiselect/Dropdown: when the menu open upwards style b…
Browse files Browse the repository at this point in the history
…roken
  • Loading branch information
cagataycivici committed Nov 25, 2020
1 parent 6426f6b commit 17da869
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 3 additions & 5 deletions src/components/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 17da869

Please sign in to comment.