From c61150eb16b63d9f5564a3226f971db87f52b514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Tue, 25 Jan 2022 08:28:10 +0000 Subject: [PATCH] [FIX] web_editor: fix placeholders for multi editor Fix placeholder not working properly when multiple editor exists task-2637488 Part-of: odoo/odoo#83792 --- addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6f23791405d..8e06c794f7b 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -2320,7 +2320,7 @@ export class OdooEditor extends EventTarget { clean() { this.observerUnactive(); - for (const hint of this.document.querySelectorAll('.oe-hint')) { + for (const hint of this.editable.querySelectorAll('.oe-hint')) { hint.classList.remove('oe-hint', 'oe-command-temporary-hint'); hint.removeAttribute('placeholder'); }