Skip to content

Commit

Permalink
fix(Tooltip): multiple tooltip display at once (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia authored Jan 27, 2025
1 parent 1fad29d commit 0c46f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/shared/useGraceArea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function useGraceArea(triggerElement: Ref<HTMLElement | undefined>, conta
const pointerPosition = { x: event.clientX, y: event.clientY }
const hasEnteredTarget = triggerElement.value?.contains(target) || containerElement.value?.contains(target)
const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, pointerGraceArea.value)
const isAnotherGraceAreaTrigger = target.hasAttribute('data-grace-area-trigger')
const isAnotherGraceAreaTrigger = !!target.closest('[data-grace-area-trigger]')

if (hasEnteredTarget) {
handleRemoveGraceArea()
Expand Down

0 comments on commit 0c46f7b

Please sign in to comment.