summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorGorash <chm@odoo.com>2019-06-17 13:52:21 +0000
committerNicolas Martinelli <nim@odoo.com>2019-06-20 13:25:37 +0000
commit82bf73fe3049978d5fa0b6984e129c5aa2870d95 (patch)
tree39d3fc0df9e2e9eaa1e5d5237a615d9ea80954bd /addons/web/static/src/js/fields/basic_fields.js
parent2349cba9c02ba46469fcd5e4a54659985da4fa21 (diff)
[FIX] web_editor: avoid dialog error on email edition
Under certain unknown conditions, the range cannot be applied and triggered an error. In order to allow the user to keep editing, we need to prevent the dialog from showing, hence the use of `console.error`. If this error appears, the carret is moved to the beginning of the focused node. If this error appears, then bullet can generate an error (I managed to have the bug once or simulate it by manually breaking the dom and range) closes odoo/odoo#34284 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions