From d3b328358fe943b4dab8deeaaf99f760fcfa3cfc Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Thu, 6 Jan 2022 12:39:28 +0000 Subject: [PATCH] [FIX] web_editor: prevent editor powerbox hint duplication Whenever the browser is lagging between multiple enter, the command hints were not being updated until the browser main thread process the event queue. Task-2728794 closes odoo/odoo#82795 X-original-commit: bfed1edd26312488dc0f45e8982b51ea4d98db76 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js index 4c7cbc1272c..f1c46fd1da2 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -1472,6 +1472,7 @@ export class OdooEditor extends EventTarget { const result = this._protect(() => this._applyRawCommand(...args)); this.sanitize(); this.historyStep(); + this._handleCommandHint(); return result; } /**