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 2cb6f886809..c0c521528e6 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 @@ -4169,6 +4169,9 @@ export class OdooEditor extends EventTarget { let appliedCustomSelection = false; if (selection.rangeCount && selection.getRangeAt(0)) { appliedCustomSelection = this._handleSelectionInTable(); + if (!appliedCustomSelection) { + this.deselectTable(); + } // Handle selection/navigation at the edges of links. const link = getInSelection(this.document, EDITABLE_LINK_SELECTOR);