Skip to content

Commit

Permalink
fix(comp:*): overlay destory on hide caused popper position error
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Nov 17, 2022
1 parent 67698a9 commit 9ad058b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/components/_private/overlay/src/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ export default defineComponent({
watch(popperOptions, options => update(options))
watch(
() => props.visible,
visible => (visible ? show() : hide()),
visible => {
visible ? show() : hide()

if (visible && props.destroyOnHide) {
initialize()
}
},
)
watch(
contentArrowRef,
Expand Down

0 comments on commit 9ad058b

Please sign in to comment.