[FIX] web_editor: preventing traceback on quote icon click

Before this commit:

Onclicking quote icon of BlockQuote generates traceback

After this commit:

Now on clicking quote icon doesnot generate traceback

Task-2920794

closes odoo/odoo#96944

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
shsa-odoo
2022-07-28 21:01:44 +02:00
parent 72ea4d57d2
commit 528ee16956
@@ -1732,9 +1732,9 @@ const Wysiwyg = Widget.extend({
// Tooltips need to be cleared before leaving the editor.
this.saving_mutex.exec(() => {
$target.tooltip({title: _t('Double-click to edit'), trigger: 'manual', container: 'body'}).tooltip('show');
this.tooltipTimeouts.push(setTimeout(() => $target.tooltip('dispose'), 800));
});
this.odooEditor.observerActive();
this.tooltipTimeouts.push(setTimeout(() => $target.tooltip('dispose'), 800));
}, 400));
}
// Update color of already opened colorpickers.