懿驹-伯乐
d258f3f8bc
fix(editor): dismiss the selection popup when its surface leaves the viewport ( #425 )
...
The portaled position:fixed add-to-conversation button stays pinned to its
viewport anchor while the sidebar keeps every tab mounted (tab switches only
set display:none; collapsing the panel translates it off-screen), so the
popup could outlive its editor surface. Extract the popup into
useSelectionPopup and close it on any mousedown outside the button, Escape,
document hidden, window blur, and - the tab-switch/collapse path - when an
IntersectionObserver reports the editor surface off-viewport.
2026-08-29 15:31:13 +08:00
..
2026-08-28 21:42:39 +08:00
2026-08-18 20:29:14 +08:00
2026-08-16 22:32:17 +08:00
2026-08-27 21:44:04 +08:00
2026-08-10 21:43:58 +08:00
2026-08-26 18:33:52 +08:00
2026-08-15 00:28:59 +08:00
2026-08-24 16:41:02 +08:00
2026-08-21 23:49:13 +08:00
2026-08-12 18:27:28 +08:00
2026-08-20 02:09:36 +08:00
2026-08-11 19:28:48 +08:00
2026-08-11 19:28:48 +08:00
2026-08-24 17:54:33 +08:00
2026-08-18 01:22:28 +08:00
2026-08-18 01:22:28 +08:00
2026-08-20 02:09:36 +08:00
2026-08-14 21:28:41 +08:00
2026-08-21 01:28:17 +08:00
2026-08-22 23:13:35 +08:00
2026-08-28 04:20:36 +08:00
2026-08-24 18:40:04 +08:00
2026-08-11 11:16:36 +08:00
2026-08-24 18:40:04 +08:00
2026-08-24 18:40:04 +08:00
2026-08-24 18:40:04 +08:00
2026-08-29 01:52:55 +08:00
2026-08-18 18:05:01 +08:00
2026-08-22 22:50:13 +08:00
2026-08-24 17:54:33 +08:00
2026-08-23 10:28:05 +08:00
2026-08-23 02:50:37 +08:00
2026-08-16 23:35:57 +08:00
2026-08-16 23:35:57 +08:00
2026-08-22 23:11:27 +08:00
2026-08-21 00:45:24 +08:00
2026-08-24 14:18:18 +08:00
2026-08-25 11:04:43 +08:00
2026-08-16 23:35:57 +08:00
2026-08-12 01:16:20 +08:00
2026-08-24 17:54:33 +08:00
2026-08-13 09:06:55 +08:00
2026-08-21 23:41:33 +08:00
2026-08-21 23:41:33 +08:00
2026-08-14 22:30:34 +08:00
2026-08-15 15:05:06 +08:00
2026-08-23 20:58:33 +08:00
2026-08-20 02:09:36 +08:00
2026-08-13 10:26:57 +08:00
2026-08-24 12:05:14 +08:00
2026-08-24 12:05:14 +08:00
2026-08-23 22:02:47 +08:00
2026-08-24 18:40:04 +08:00
2026-08-23 22:02:47 +08:00
2026-08-24 12:05:14 +08:00
2026-08-18 01:22:28 +08:00
2026-08-23 01:50:07 +08:00
2026-08-18 01:22:28 +08:00
2026-08-22 23:19:17 +08:00
2026-08-14 14:53:03 +08:00
2026-08-22 23:19:17 +08:00
2026-08-22 23:19:17 +08:00
2026-08-24 01:39:53 +08:00
2026-08-11 11:22:28 +08:00
2026-08-16 23:35:57 +08:00
2026-08-26 21:40:32 +08:00
2026-08-16 23:35:57 +08:00
2026-08-14 23:04:25 +08:00
2026-08-24 17:54:33 +08:00
2026-08-24 16:46:02 +08:00
2026-08-16 23:06:44 +08:00
2026-08-21 00:48:16 +08:00
2026-08-18 19:56:04 +08:00
2026-08-24 18:40:04 +08:00
2026-08-13 01:39:59 +08:00
2026-08-29 15:31:13 +08:00
2026-08-23 23:44:18 +08:00
2026-08-16 16:24:28 +08:00
2026-08-21 01:28:17 +08:00
2026-08-20 02:09:36 +08:00
2026-08-24 01:19:43 +08:00
2026-08-24 16:41:02 +08:00
2026-08-22 00:15:06 +08:00
2026-08-22 15:34:05 +08:00
2026-08-22 15:34:05 +08:00
2026-08-21 15:41:14 +08:00
2026-08-22 15:34:05 +08:00
2026-08-27 21:44:04 +08:00
2026-08-26 18:27:32 +08:00
2026-08-21 18:15:49 +08:00
2026-08-22 15:34:05 +08:00
2026-08-21 18:15:49 +08:00
2026-08-13 09:06:55 +08:00
2026-08-21 18:15:49 +08:00
2026-08-21 18:15:49 +08:00
2026-08-26 18:42:34 +08:00
2026-08-23 23:44:18 +08:00
2026-08-23 23:44:18 +08:00
2026-08-26 21:40:32 +08:00
2026-08-17 00:06:20 +08:00
2026-08-24 18:40:04 +08:00
2026-08-27 21:44:32 +08:00
2026-08-16 16:37:11 +08:00
2026-08-21 01:28:17 +08:00
2026-08-27 21:44:04 +08:00
2026-08-18 23:23:17 +08:00
2026-08-24 01:36:29 +08:00
2026-08-20 18:28:57 +08:00
2026-08-21 01:28:17 +08:00