Skip to content
Snippets Groups Projects
Commit 7aaf0e17 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web_editor: add perf. optimization when toggling editor options


This allows to avoid tens of thousands of instructions being done at
each click in the editor.

At multiple places, the editor is asked to close all its widgets (for
example, when clicking on another snippet to edit). The original cost
of that action was to remove a class on each widget, which is a very
primitive action. But in the end we had to do more to close a widget: we
trigger_up an event and ask to close all sub widgets. When we ask the
editor to close all widgets... it makes sense not letting every sub
button of every select trigger_up an event.

closes odoo/odoo#79217

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent 8c6c1fac
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