Skip to content
Snippets Groups Projects
Commit 89116f6f authored by shsa-odoo's avatar shsa-odoo
Browse files

[FIX] web_editor: remove toolbar on selection collape in table


Before this commit:

when selected cell is clicked, its selection collapses yet toolbar is visible.

After this commit:

Now toolbar is removed when selection collapses.

task-3458048

closes odoo/odoo#131339

Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent 9be75bb1
No related branches found
No related tags found
No related merge requests found
......@@ -4326,6 +4326,7 @@ export class OdooEditor extends EventTarget {
this.toolbar.style.pointerEvents = 'none';
if (this.deselectTable() && hasValidSelection(this.editable)) {
this.document.getSelection().collapseToStart();
this._updateToolbar(false);
}
}
// Handle table resizing.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment