Skip to content
Snippets Groups Projects
Commit 03b20786 authored by Bruno Boi's avatar Bruno Boi
Browse files

[FIX] web: sync reposition for nested poppers

This commit will have nested components making use of
the usePosition hook to synchronize their repositioning.

**Before this commit**
Each component handles its own repositioning logic.
If it is mounted somehow inside another component using that
same logic, conflicts occur in some circumstances.

**After this commit**
It is now ensured that, in case of nested positioned components,
the whole chain of repositioning computations is called in the
proper order: from the parent to the children.

**Example**
- Before
  ![before]
- After
  ![after]

[before]: https://github.com/odoo/odoo/assets/1159815/3c9cfae7-db68-4707-a73c-ad7e2e71d4bf
[after]: https://github.com/odoo/odoo/assets/1159815/a21f56e0-d8e3-48c1-9509-8e6ee5040d4b



closes odoo/odoo#125359

X-original-commit: 7ceba441cc44ba6e6c7ee85008ab4b233e7f2d86
Signed-off-by: default avatarMichaël Mattiello (mcm) <mcm@odoo.com>
Signed-off-by: default avatarBruno Boi (boi) <boi@odoo.com>
parent 3573ea56
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment