From 528ee169561ba38c7d368a938e4fc985e57dce6f Mon Sep 17 00:00:00 2001 From: shsa-odoo Date: Wed, 27 Jul 2022 11:53:57 +0000 Subject: [PATCH] [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) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 1939c5e64e2..f5bcfee6bb5 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -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.