Skip to content

Commit

Permalink
fix(comp:*): overlay destory on hide caused popper position error (#1288
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sallerli1 authored Nov 21, 2022
1 parent e438cb3 commit 0d5fe4e
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 0d5fe4e

Please sign in to comment.