summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/chart.xml
diff options
context:
space:
mode:
authorjvm-odoo <jvm@odoo.com>2020-06-29 10:17:25 +0000
committerjvm-odoo <jvm@odoo.com>2020-07-08 11:38:48 +0000
commit0744c29d89dd70067ccaec8bb54fe1fe21c4c43a (patch)
tree1690d84460e77c33778c3fbb1b487146c028927d /addons/web/static/src/xml/chart.xml
parent0645b7efa903903fd51dd199259c9aff1b2c69ab (diff)
[FIX] web_editor: fix restored selection when closing link dialog
Issue - Runbot 13.0 - Website > Contact Form - Double click on send button Link dialog opened, ok - Discard - Double click on send button - Click link button Traceback Cause The next double click doesn't work because in rte.js RTEWidget._onMousedown we remove the target's contenteditable attribute and it's never added back. This is because we break if the element is not editable. The traceback is a side effect, since we can't select the button anymore, our selection is incorrect and getLinkInfo use range.create() try to use it. Solution Break only if the target is not a '<a>' & non-editable element OPW-2268595 closes odoo/odoo#54221 X-original-commit: 460bc102d0f7503207fb7bd11216c335795dd33b Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/chart.xml')
0 files changed, 0 insertions, 0 deletions