diff options
| author | jvm-odoo <jvm@odoo.com> | 2020-06-29 10:17:25 +0000 |
|---|---|---|
| committer | jvm-odoo <jvm@odoo.com> | 2020-07-08 11:38:48 +0000 |
| commit | 0744c29d89dd70067ccaec8bb54fe1fe21c4c43a (patch) | |
| tree | 1690d84460e77c33778c3fbb1b487146c028927d /addons/web/static/src/xml/menu.xml | |
| parent | 0645b7efa903903fd51dd199259c9aff1b2c69ab (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/menu.xml')
0 files changed, 0 insertions, 0 deletions
