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'); }