diff options
| author | Antoine Guenet <age@odoo.com> | 2019-04-15 11:40:05 +0000 |
|---|---|---|
| committer | Antoine Guenet <age@odoo.com> | 2019-04-15 11:40:05 +0000 |
| commit | 17aff7b59b7b5e997da14a00e0df1d2ed7c16164 (patch) | |
| tree | cbf2c7ff38ccb88056f45ae69f3cac0de5d0db24 /addons/web_editor/static/src | |
| parent | 8b31b3b18df1fa3be25014b556e08e132fb3ab07 (diff) | |
[FIX] web_editor: uncheck new checklist item on split
On ENTER in a checklist item, a new checklist item is created. The new
one should never be checked. This ensures that ENTER in a checked
checklist item never creates a checked checklist item but instead cleans
the class.
closes odoo/odoo#32684
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/wysiwyg/plugin/keyboard.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/keyboard.js b/addons/web_editor/static/src/js/wysiwyg/plugin/keyboard.js index 3ab6a5f0317..94ec9306f7d 100644 --- a/addons/web_editor/static/src/js/wysiwyg/plugin/keyboard.js +++ b/addons/web_editor/static/src/js/wysiwyg/plugin/keyboard.js @@ -296,6 +296,7 @@ var KeyboardPlugin = AbstractPlugin.extend({ var next = this.context.invoke('HelperPlugin.splitTree', ancestor, point, { isSkipPaddingBlankHTML: !this.context.invoke('HelperPlugin.isNodeBlockType', point.node.parentNode) && !!point.node.parentNode.nextSibling }); + $(next).removeClass('o_checked'); while (next.firstChild) { next = next.firstChild; } |
