Fix regression from #3834 causing sub-menu lists to close if outside their hover stray distance

This commit is contained in:
Keavon Chambers 2026-03-18 15:53:48 -07:00
parent 187b4c38b4
commit 7f6571ee52
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@
// POINTER STRAY
// Close the floating menu if the pointer has strayed far enough from its bounds (and it's not hovering over its own spawner)
const notHoveringOverOwnSpawner = ownSpawner !== targetSpawner || (ownSpawner === undefined && targetSpawner === undefined);
const notHoveringOverOwnSpawner = ownSpawner !== targetSpawner;
if (strayCloses && notHoveringOverOwnSpawner && isPointerEventOutsideFloatingMenu(e, POINTER_STRAY_DISTANCE)) {
// TODO: Extend this rectangle bounds check to all submenu bounds up the DOM tree since currently submenus disappear
// TODO: with zero stray distance if the cursor is further than the stray distance from only the top-level menu