[FIX] web_editor: correctly call onBlur on tab change

Before this commit, the onBlur function of snippet options was not
called if the blur occured because of a click on the 'Blocks' tab.

Part of https://github.com/odoo/odoo/pull/52081

X-original-commit: 85049e2dcf68c40218bd0f4ed7401a4f979951d4
This commit is contained in:
qsm-odoo
2020-05-28 14:32:25 +00:00
parent ff2c9fc195
commit 0c895e0bf9
@@ -2056,10 +2056,11 @@ var SnippetsMenu = Widget.extend({
* @private
*/
_onBlocksTabClick: function (ev) {
this._activateSnippet(false);
this._updateLeftPanelContent({
content: [],
tab: this.tabs.BLOCKS,
this._activateSnippet(false).then(() => {
this._updateLeftPanelContent({
content: [],
tab: this.tabs.BLOCKS,
});
});
},
/**