Files
odoo_source/addons
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-10-27 08:36:16 +00:00
2023-10-31 15:54:32 +00:00
2023-10-27 08:36:16 +00:00
2023-11-02 15:10:56 +00:00
2023-10-30 16:41:49 +00: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-10-25 19:37:35 +00:00
2023-10-26 08:45:57 +00:00
2023-10-25 18:11:01 +00:00
2023-10-31 15:54:32 +00:00
2023-10-27 08:36:16 +00:00
2023-11-04 00:38:33 +00:00
2023-10-31 15:54:32 +00:00
2023-10-27 08:36:16 +00:00
2023-10-31 15:54:32 +00: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-10-31 15:54:32 +00: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-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-10-31 15:54:32 +00:00
2023-11-02 21:02:44 +00:00
2023-10-27 08:36:16 +00:00
2023-10-27 08:36:16 +00:00