[FIX] web_editor: update toolbar on list uncheck.
Before this commit: -With selection on checklist, on unchecking it toolbar is not updating. After this commit: -Now toolbar is updated when list unchecks. task-3504398 closes odoo/odoo#136541 X-original-commit: 2cf3dd5988914a09bbc2098eccb3c8419995e120 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -4433,6 +4433,9 @@ export class OdooEditor extends EventTarget {
|
||||
toggleClass(node, 'o_checked');
|
||||
ev.preventDefault();
|
||||
this.historyStep();
|
||||
if (!document.getSelection().isCollapsed) {
|
||||
this._updateToolbar(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user