diff options
| author | Gorash <chm@odoo.com> | 2019-09-18 11:39:32 +0000 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2019-09-19 07:40:47 +0000 |
| commit | d1f25b178a165f2575a142f2a886ea2d6234cd51 (patch) | |
| tree | a8a1459c2bdbb1a6f56bfc42fc37f630548c1cd9 /addons/web_editor/static/src/js/backend/field_html.js | |
| parent | f7c2cb088c2be1dbf5c85b3a47a77be68fb0ea84 (diff) | |
[FIX] web_editor: recursive checkbox check
In multi-level checkboxes, if there is only one checkbox per level, the
expected behavior is that all checkbox will be checked if one of them is
checked. This was not the case before this commit.
Diffstat (limited to 'addons/web_editor/static/src/js/backend/field_html.js')
| -rw-r--r-- | addons/web_editor/static/src/js/backend/field_html.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/backend/field_html.js b/addons/web_editor/static/src/js/backend/field_html.js index 0be20743132..cc06bc53c96 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -432,6 +432,8 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { if (ev.offsetX > 0) { return; } + ev.stopPropagation(); + ev.preventDefault(); var checked = $(ev.target).hasClass('o_checked'); var checklistId = parseInt(($(ev.target).attr('id') || '0').replace(/^checklist-id-/, '')); |
