[FIX] web_editor: do not redraw option hierarchy on click
Before this commit, when a hierarchy of options was displayed in the editor left panel and that the user click on any one, the related snippet was enabled making all the children options disappear (like the "go to parent" button in the old UI). Now we only keep this behavior when we click on the title of the snippet's options. closes odoo/odoo#37538 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -354,7 +354,7 @@ var SnippetEditor = Widget.extend({
|
||||
})).data('editor', this);
|
||||
$optionsSection.on('mouseover', this._onOptionsSectionMouseOver.bind(this));
|
||||
$optionsSection.on('mouseleave', this._onOptionsSectionMouseLeave.bind(this));
|
||||
$optionsSection.on('click', this._onOptionsSectionClick.bind(this));
|
||||
$optionsSection.on('click', 'we-title > span', this._onOptionsSectionClick.bind(this));
|
||||
$optionsSection.on('click', '.oe_snippet_clone', this._onCloneClick.bind(this));
|
||||
$optionsSection.on('click', '.oe_snippet_remove', this._onRemoveClick.bind(this));
|
||||
this._customize$Elements.push($optionsSection);
|
||||
|
||||
Reference in New Issue
Block a user