Skip to content

Commit

Permalink
fix(taginput): fix dropdown position when autocompleted and appended …
Browse files Browse the repository at this point in the history
…to body (buefy#3865)

When Autocomplete is used as Taginput child, appended to body Dropdown position should be calculated from Taginput element as trigger.
  • Loading branch information
francisfontoura authored Nov 20, 2023
1 parent b469a39 commit 703018e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ export default {
},
updateAppendToBody() {
const dropdownMenu = this.$refs.dropdown
const trigger = this.$refs.input.$el
const trigger = this.$parent.$data._isTaginput ? this.$parent.$el : this.$refs.input.$el
if (dropdownMenu && trigger) {
// update wrapper dropdown
const root = this.$data._bodyEl
Expand Down

0 comments on commit 703018e

Please sign in to comment.