[FIX] web_editor: restore invisible snippet activation

The loading effect of the left panel was conflicting with the invisible
snippet activation. This is to be reviewed with the new UI anyway, so
the loading effect is just removed in that case for now.

closes odoo/odoo#52676

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2020-06-09 09:36:05 +00:00
parent 7087116ad3
commit b61a3c9744
@@ -2057,8 +2057,6 @@ var SnippetsMenu = Widget.extend({
* @param {Event} ev
*/
_onInvisibleEntryClick: async function (ev) {
this._addTabLoading();
ev.preventDefault();
const $snippet = $(this.invisibleDOMMap.get(ev.currentTarget));
const isVisible = await this._mutex.exec(async () => {