Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 20ac71d

Browse files
authored
Merge pull request bootstrap-vue-next#1294 from MaximeGoyette/fix-dropdown-not-updating
fix(BDropdown): dropdown not automatically flipping
2 parents 9055e61 + 9157407 commit 20ac71d

File tree

1 file changed

+2
-0
lines changed
  • packages/bootstrap-vue-next/src/components/BDropdown

1 file changed

+2
-0
lines changed

packages/bootstrap-vue-next/src/components/BDropdown/BDropdown.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
<script setup lang="ts">
5959
import {
60+
autoUpdate,
6061
flip,
6162
offset as floatingOffset,
6263
type Middleware,
@@ -238,6 +239,7 @@ const {x, y, strategy, update} = useFloating(referencePlacement, floating, {
238239
placement: floatingPlacement,
239240
middleware: floatingMiddleware,
240241
strategy: props.strategy,
242+
whileElementsMounted: autoUpdate,
241243
})
242244
243245
const computedClasses = computed(() => ({

0 commit comments

Comments
 (0)