Skip to content

Commit

Permalink
fix: click on trigger causing the menu to close prematurely
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Aug 22, 2023
1 parent 54e0eac commit d699ec9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ function handlePointerLeave(ev: PointerEvent) {
}
function handleClick() {
// if open via pointermove, we prevent click event
if (hasPointerMoveOpenedRef.value)
return
if (open.value)
context?.onItemSelect('')
else context?.onItemSelect(itemContext!.value)
Expand Down

0 comments on commit d699ec9

Please sign in to comment.