Skip to content
Snippets Groups Projects
Commit d2f3c9e7 authored by xO-Tx's avatar xO-Tx Committed by qsm-odoo
Browse files

[FIX] web_editor: fix anchor click on submit button

Context:
1) Edit mode
2) Click on anchor edition button of website form submit button
3) Traceback occurs

The "focus" triggered on $editable element in editor's 'getLinkInfo()'
discards user's text selection on submit button, as a result,
'range.create()' method returns null since no selection is found.

Note: the bug only occurred in Chrome.

Note 2: [1] apparently tried to solve the same issue but the fix was not
        solving it correctly, at least not in all cases.

[1]: https://github.com/odoo/odoo/commit/da14e4449e5e318eb72e1b9f268fb797adb0c6a6



opw-2443441

closes odoo/odoo#65875

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 7f8ff150
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment