Bruno Boi
003609b8d2
[IMP] web: soften the UI active element takeover
...
**Good to know first**
The UI active element takership system is
directly bound to the focus trap mechanism.
**Before this commit**
If an element become the UI active element but has no
tabable elements in its tree, we force its tabindex
to the -1 value to make it programmatically focusable.
That way we ensure the focus is effectively trapped.
**After this commit**
The tabindex is no more forced at all.
Instead, if we detect that there are no tabable elements
inside the UI active element candidate, it simply does not
become the UI active element.
In other words, this commit kind of weakens the focus trap.
But this is perfectly fine for our use cases, i.e.:
- dialogs always have at least one focusable button (close, ok...)
- the website wysiwyg-adapter has a ton of focusable elements
**Why ?**
We need this change to permit other UI pieces to make use of
the active element takeover mechanism, i.e. popovers.
Part-of: odoo/odoo#140885
2023-11-04 16:38:53 +00:00
..
2023-11-04 06:43:21 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 09:00:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:25 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 20:54:05 +00:00
2023-10-31 14:41:00 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-03 16:43:31 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:20 +00:00
2023-11-02 16:57:50 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:21 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:21 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-31 13:26:38 +00:00
2023-10-30 09:00:56 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-11-02 12:03:49 +00:00
2023-10-29 00:07:17 +02:00
2023-11-03 07:34:58 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:21 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-02 15:10:56 +00:00
2023-11-03 18:05:36 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:16 +00:00
2023-10-30 16:41:49 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 03:25:44 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:21 +00:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:15 +00:00
2023-10-29 00:07:17 +02:00
2023-11-02 12:03:40 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:18 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:08 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-02 15:10:58 +00:00
2023-10-29 00:07:17 +02:00
2023-10-26 13:41:03 +00:00
2023-11-04 06:43:06 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 11:17:00 +00:00
2023-10-29 00:07:17 +02:00
2023-10-24 13:55:23 +00:00
2023-10-25 19:37:35 +00:00
2023-10-26 12:10:11 +00:00
2023-10-26 08:45:57 +00:00
2023-10-27 14:21:59 +00:00
2023-10-27 14:21:59 +00:00
2023-10-24 13:55:23 +00:00
2023-11-03 07:35:01 +00:00
2023-10-31 15:54:25 +00:00
2023-10-25 18:11:01 +00:00
2023-10-25 11:37:23 +00:00
2023-11-04 03:25:42 +00:00
2023-10-25 20:56:15 +00:00
2023-10-30 12:05:23 +00:00
2023-10-26 07:22:56 +00:00
2023-10-31 15:54:25 +00:00
2023-10-25 18:10:54 +00:00
2023-10-30 09:00:56 +00:00
2023-11-03 00:49:05 +00:00
2023-10-24 12:38:15 +00:00
2023-10-30 16:41:37 +00:00
2023-10-24 13:55:23 +00:00
2023-10-31 15:54:29 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 03:25:48 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 10:34:00 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:21 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:33 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-11-02 21:02:44 +00:00
2023-10-30 12:05:28 +00:00
2023-10-29 00:07:17 +02:00
2023-11-02 15:10:54 +00:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 17:48:46 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:13 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-02 16:57:53 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 03:25:46 +00:00
2023-10-27 08:36:16 +00:00
2023-10-30 12:05:23 +00:00
2023-10-29 00:07:17 +02:00
2023-11-03 18:05:37 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:09 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-11-02 16:57:53 +00:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 05:35:38 +00:00
2023-10-27 14:22:08 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 14:40:57 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:14 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:26 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:17 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-11-02 15:10:54 +00:00
2023-10-29 00:07:17 +02:00
2023-11-03 16:43:33 +00:00
2023-10-29 00:07:17 +02:00
2023-11-03 12:02:43 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-30 12:05:25 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 07:11:45 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-11-03 12:02:43 +00:00
2023-10-27 08:36:16 +00:00
2023-11-04 09:05:38 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 06:43:11 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 00:38:26 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 15:54:32 +00:00
2023-10-27 23:44:52 +00:00
2023-10-25 11:37:17 +00:00
2023-10-31 13:26:38 +00:00
2023-11-02 13:25:48 +00:00
2023-11-02 18:23:11 +00:00
2023-10-24 19:24:50 +00:00
2023-10-24 19:24:50 +00:00
2023-10-27 21:36:46 +00:00
2023-11-02 21:02:44 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-04 16:38:53 +00:00
2023-11-04 00:38:25 +00:00
2023-11-04 06:43:15 +00:00
2023-11-03 16:43:34 +00:00
2023-10-29 00:07:17 +02:00
2023-11-04 12:21:46 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-03 10:46:11 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-31 13:26:38 +00:00
2023-10-29 00:07:17 +02:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-31 13:26:38 +00:00
2023-10-27 08:36:16 +00:00
2023-10-31 13:26:38 +00:00
2023-11-02 21:02:44 +00:00
2023-10-30 12:05:31 +00:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-03 16:43:37 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-27 08:36:16 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00
2023-11-03 16:43:31 +00:00
2023-11-02 21:02:44 +00:00
2023-10-29 00:07:17 +02:00
2023-10-30 16:41:52 +00:00
2023-10-29 00:07:17 +02:00
2023-10-29 00:07:17 +02:00