懿驹-伯乐
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-24 18:40:04 +08:00
2026-08-18 01:22:28 +08:00
2026-08-20 02:09:36 +08:00
2026-08-25 11:04:43 +08:00
2026-08-11 11:16:36 +08:00
2026-08-21 23:49:13 +08:00
2026-08-15 01:37:39 +08:00
2026-08-24 18:40:04 +08:00
2026-08-28 04:20:36 +08:00
2026-08-11 11:16:36 +08:00
2026-08-13 01:39:59 +08:00
2026-08-08 01:02:24 +08:00
2026-08-21 01:28:17 +08:00
2026-08-23 22:02:47 +08:00
2026-08-22 23:13:35 +08:00
2026-08-11 11:16:36 +08:00
2026-08-24 18:40:04 +08:00
2026-08-29 01:52:55 +08:00
2026-08-22 22:50:13 +08:00
2026-08-24 00:35:58 +08:00
2026-08-25 11:04:43 +08:00
2026-08-26 18:42:34 +08:00
2026-08-10 16:54:13 +08:00
2026-08-12 01:16:20 +08:00
2026-08-24 01:35:00 +08:00
2026-08-24 18:40:04 +08:00
2026-08-18 18:05:01 +08:00
2026-08-21 23:41:33 +08:00
2026-08-21 23:41:33 +08:00
2026-08-12 18:19:44 +08:00
2026-08-15 15:05:06 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 18:33:02 +08:00
2026-08-24 12:05:14 +08:00
2026-08-24 12:05:14 +08:00
2026-08-28 04:20:36 +08:00
2026-08-28 04:20:36 +08:00
2026-08-24 12:05:14 +08:00
2026-08-24 12:05:14 +08:00
2026-08-18 01:22:28 +08:00
2026-08-28 04:20:36 +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-15 17:08:04 +08:00
2026-08-11 11:22:28 +08:00
2026-08-23 22:02:47 +08:00
2026-08-10 16:46:01 +08:00
2026-08-10 16:46:01 +08:00
2026-08-26 21:40:32 +08:00
2026-08-22 23:19:17 +08:00
2026-08-20 02:09:36 +08:00
2026-08-23 01:24:20 +08:00
2026-08-16 22:32:17 +08:00
2026-08-24 16:41:02 +08:00
2026-08-24 01:36:29 +08:00
2026-08-14 18:29:31 +08:00
2026-08-11 19:28:48 +08:00
2026-08-13 01:39:59 +08:00
2026-08-29 15:31:13 +08:00
2026-08-28 04:20:36 +08:00
2026-08-16 16:24:28 +08:00
2026-08-28 21:42:39 +08:00
2026-08-29 11:45:29 +08:00
2026-08-26 22:46:56 +08:00
2026-08-22 23:19:17 +08:00
2026-08-24 01:19:43 +08:00
2026-08-22 15:34:05 +08:00
2026-08-22 15:34:05 +08:00
2026-08-28 04:20:36 +08:00
2026-08-26 18:33:02 +08:00
2026-08-26 22:46:56 +08:00
2026-08-21 15:41:14 +08:00
2026-08-13 09:06:55 +08:00
2026-08-13 09:06:55 +08:00
2026-08-21 18:15:49 +08:00
2026-08-26 21:40:32 +08:00
2026-08-26 22:43:20 +08:00
2026-08-24 18:40:04 +08:00
2026-08-27 21:44:32 +08:00
2026-08-27 21:44:32 +08:00
2026-08-29 15:31:13 +08:00
2026-08-16 16:37:11 +08:00
2026-08-21 01:28:17 +08:00
2026-08-24 18:40:04 +08:00
2026-08-20 18:28:57 +08:00
2026-08-20 18:28:57 +08:00
2026-08-21 01:28:17 +08:00