Skip to content
Snippets Groups Projects
Commit 6b77e105 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] website: prevent input and datepicker interaction in edit mode


Before this commit, during edit mode, the user was able to interact with
form elements. It was somehow prevented by some JS code by losing the
focus immediatly but it was not enough: if typing quickly the user was
able to type text. But the real problem was the user seeing the input
focused for half a second then not anymore, making him think a bug
occured. Worse, the datepickers of the form snippet were able to be used
entirely during edit mode, making the user think it is possible to
configure a default value (which is not true in 13.0). In following
versions, the bug is indeed worse as it messes up with the default
values configuration.

This commit fixes that via CSS, still allowing a click on the elements
to be considered as a click on the parent, but preventing to focus our
snippet inputs (this fix is limited to our own snippets as stable fix).
Note: the JS code which prevents the focus right now was not found (if
it even exists...) but it would not be ok to remove it in stable anyway.
More investigation and review will be done once this reaches master.

task-2523496

closes odoo/odoo#84237

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent 42e20b2d
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment