maoyingjie
e797c25d46
fix: real trigger owns long press, Vue click chain and layered Esc
...
- DropdownTrigger takes over the longPress press lifecycle in capture phase and
cancels Reka's own open/toggle through its defaultPrevented guard; DropdownRoot
no longer wraps the whole menu content. Short click, Enter and Space now open
exactly once, and release cannot close the menu again.
- MenuItem hands user handlers plus activation to Vue as one DOM onClick array,
so preventDefault, capture and stopImmediatePropagation keep native semantics
instead of a hand-rolled handler loop.
- DropdownSubmenuTrigger owns its own open state and closes only its level on
Escape, restoring focus to the submenu trigger; the parent menu stays open and
a second Escape closes the root.
2026-10-24 21:42:25 +08:00
..
2026-10-24 21:42:25 +08:00
2026-10-24 21:42:25 +08:00
2026-10-24 21:19:04 +08:00
2026-10-23 23:56:18 +08:00
2026-10-24 07:39:22 +08:00
2026-10-21 22:33:19 +08:00
2026-10-22 08:46:02 +08:00
2026-10-22 09:15:27 +08:00
2026-10-23 15:02:30 +08:00
2026-10-21 13:04:06 +08:00
2026-10-21 13:04:06 +08:00
2026-10-21 17:06:53 +08:00
2026-10-21 17:06:53 +08:00
2026-10-21 18:35:24 +08:00
2026-10-21 18:35:24 +08:00
2026-10-21 18:35:24 +08:00
2026-10-21 21:32:40 +08:00
2026-10-21 21:32:40 +08:00
2026-10-21 21:32:40 +08:00
2026-10-21 22:33:19 +08:00
2026-10-21 22:56:18 +08:00
2026-10-21 22:56:18 +08:00
2026-10-21 23:41:57 +08:00
2026-10-21 22:56:18 +08:00
2026-10-21 23:41:57 +08:00
2026-10-22 18:25:08 +08:00
2026-10-21 23:41:57 +08:00
2026-10-22 08:46:02 +08:00
2026-10-22 13:07:13 +08:00
2026-10-22 13:07:13 +08:00
2026-10-22 13:07:13 +08:00
2026-10-22 13:07:13 +08:00
2026-10-22 14:33:15 +08:00
2026-10-22 14:33:15 +08:00
2026-10-22 14:33:15 +08:00
2026-10-22 14:33:15 +08:00
2026-10-22 18:25:08 +08:00
2026-10-22 18:25:08 +08:00
2026-10-22 18:25:08 +08:00
2026-10-22 18:25:08 +08:00
2026-10-22 18:25:08 +08:00
2026-10-23 00:25:45 +08:00
2026-10-23 09:57:41 +08:00
2026-10-23 09:57:41 +08:00
2026-10-23 09:57:41 +08:00
2026-10-23 09:57:41 +08:00
2026-10-23 10:50:42 +08:00
2026-10-23 10:50:42 +08:00
2026-10-23 09:57:41 +08:00
2026-10-23 10:50:42 +08:00
2026-10-23 13:55:44 +08:00
2026-10-23 13:55:44 +08:00
2026-10-23 13:49:44 +08:00
2026-10-23 13:49:44 +08:00
2026-10-23 13:49:44 +08:00
2026-10-23 13:49:44 +08:00
2026-10-23 13:49:44 +08:00
2026-10-23 13:49:44 +08:00
2026-10-23 18:34:07 +08:00
2026-10-23 18:36:19 +08:00
2026-10-23 13:55:44 +08:00
2026-10-23 18:34:07 +08:00
2026-10-23 18:34:07 +08:00
2026-10-23 18:34:07 +08:00
2026-10-23 18:34:07 +08:00
2026-10-24 07:32:45 +08:00
2026-10-24 07:19:26 +08:00
2026-10-24 07:19:26 +08:00
2026-10-24 07:19:26 +08:00
2026-10-24 07:19:26 +08:00
2026-10-24 07:19:26 +08:00
2026-10-24 07:19:26 +08:00
2026-10-23 18:36:19 +08:00
2026-10-24 07:25:36 +08:00
2026-10-24 07:19:26 +08:00
2026-10-24 07:30:53 +08:00
2026-10-23 11:48:29 +08:00
2026-10-22 23:39:51 +08:00
2026-10-23 22:47:36 +08:00
2026-10-23 13:12:26 +08:00