Skip to content

Commit

Permalink
fix(Popper): use watchPostEffect for placed update
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmaxme committed Aug 7, 2024
1 parent 9c665d6 commit cfc79af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/radix-vue/src/Popper/PopperContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const [injectPopperContentContext, providePopperContentContext]
</script>

<script setup lang="ts">
import { computed, ref, watchEffect } from 'vue'
import { computed, ref, watchEffect, watchPostEffect } from 'vue'
import { computedEager } from '@vueuse/core'
import {
autoUpdate,
Expand Down Expand Up @@ -289,7 +289,7 @@ const placedAlign = computed(
() => getSideAndAlignFromPlacement(placement.value)[1],
)
watchEffect(() => {
watchPostEffect(() => {
if (isPositioned.value)
emits('placed')
})
Expand Down

0 comments on commit cfc79af

Please sign in to comment.