Skip to content

Commit

Permalink
fix(comp:*): overlay options update should watch deep (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 authored Aug 11, 2023
1 parent 02c5043 commit e6f5fa2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/_private/overlay/src/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ function usePopperOptions(
setOptions({ allowEnter, autoAdjust, delay, disabled, offset: _offset, placement, trigger })
}

onMounted(() => {
watch([props, arrowRef], updateOptions, { immediate: true })
})
watch(props, updateOptions, { immediate: true, deep: true })
watch(arrowRef, updateOptions)

return {
options,
Expand Down

0 comments on commit e6f5fa2

Please sign in to comment.