Files
element-call-Github/src
fkwp a6e00895a0 Track the focus modality on the menu itself
- Was watched at the document, so a key pressed in another Element Call on the
  same page — or in the host's own page — lit this menu's ring. Element Call
  can be mounted more than once, and the menu is portalled out of the root.
- Watched on the menu instead, which is the element that holds focus.
- A callback ref, not an effect on `menuOpen`: that state is ours and the open
  menu is Radix's, and they do not commit together, so the effect could run
  before there was anything to attach to.
- Recorded on the menu rather than in state, so every item it can focus answers
  to it — the camera menu's blur toggle kept the browser's own ring otherwise,
  which follows the pointer.
- Nothing re-renders when the modality changes now, so the reset folds in with
  the listeners and the second effect on that state goes.
- Comments moved to the code they describe; three unrelated ones had stacked up
  on one declaration.
2026-09-17 11:56:31 +02:00
..
2026-03-30 18:26:38 +02:00
2026-09-03 11:47:35 +02:00
2026-09-03 11:47:35 +02:00
2025-06-23 23:06:33 -04:00
2026-03-30 18:26:38 +02:00
2025-03-13 18:00:24 -04:00
2025-09-16 11:46:25 +02:00
2026-06-22 11:59:16 +02:00
2026-09-08 15:39:00 +02:00
2026-09-03 11:47:35 +02:00
2025-03-13 17:51:41 -04:00
2025-03-13 17:51:41 -04:00
2026-04-03 17:48:42 +02:00
2026-09-09 17:01:16 +02:00
2026-09-08 15:39:00 +02:00
2025-02-24 18:18:15 +07:00
2025-06-24 08:28:15 -04:00
2025-03-13 17:51:41 -04:00
2025-03-13 17:51:41 -04:00