Skip to content

Commit 7bc7f96

Browse files
committed
fix: CDropdown: fix split button dropdowns positioning
1 parent 1a64352 commit 7bc7f96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/dropdown/CDropdown.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@ export default {
139139
return
140140
}
141141
this.$nextTick(() => {
142+
142143
this._popper = createPopper(
143-
this.$el.firstElementChild,
144+
//not first child because of split buttons
145+
this.$el.children[this.$el.children.length - 2],
144146
this.$refs.menu,
145147
this.customPopperOptions || this.defaultPopperOptions
146148
)

0 commit comments

Comments
 (0)