Skip to content

Commit

Permalink
fix(edgeless): format bar popup disappears on edgeless (toeverything#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs authored Feb 15, 2024
1 parent 076cc46 commit 151b626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/blocks/src/_common/components/hover/when-hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ export const whenHover = (
onHoverChange(new MouseEvent('mouseover'));
}
element.addEventListener('mouseover', onHoverChange, {
capture: true,
signal: abortController.signal,
});
element.addEventListener('mouseleave', onHoverChange, {
capture: true,
signal: abortController.signal,
});
};
Expand Down

0 comments on commit 151b626

Please sign in to comment.