Skip to content
Snippets Groups Projects
Commit 609258fa authored by Guillaume (gdi)'s avatar Guillaume (gdi) Committed by Benoit Socias
Browse files

[FIX] web_editor: avoid flicker when browsing through items images

Since [1] when selecting item images, the 'Blocks' tab is displayed
while the options are refreshed. This is visible because the image
selection awaits an RPC which therefore allows the browser to render
the 'Blocks' tab selected version of the display.

This commit prevents the return to the 'Blocks' tab to be rendered by
waiting for the image info to be obtained on start.

Steps to reproduce:
- Drop an "Items" block.
- Click on an image.
- Click on another image.
=> The options panel flickers on the 'Blocks' tab before showing the
second image's options.

[1]: https://github.com/odoo/odoo/commit/0acc5e784b15d9c963660da3781763448503f33e



task-2821398

closes odoo/odoo#91929

Signed-off-by: default avatarGuillaume-gdi <gdi@odoo.com>
Co-authored-by: default avatarBenoit Socias <bso@odoo.com>
parent 4d8e43eb
No related branches found
No related tags found
Loading
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