diff --git a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js index 1f836e8242a..6abe41ccd45 100644 --- a/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/src/js/editor/odoo-editor/src/OdooEditor.js @@ -2916,6 +2916,9 @@ export class OdooEditor extends EventTarget { * @param {HTMLTableRowElement|HTMLTableCellElement} element */ _positionTableUi(element) { + if (!element.isConnected) { + return; + } const tableUiContainerRect = this._tableUiContainer.getBoundingClientRect(); const isRtl = this.options.direction === 'rtl'; const isRow = element.nodeName === 'TR';