Skip to content

Commit

Permalink
(vue): Fix Hide events being emitter before each Show event (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Apr 13, 2023
1 parent c113d4a commit fb2fee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue/src/float.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ export function useFloat<T extends ReferenceElement>(

onInvalidate(() => {
cleanup()
emit('hide')
if (!show.value)
emit('hide')
})
}
}, { flush: 'post', immediate: true })
Expand Down

0 comments on commit fb2fee0

Please sign in to comment.