diff options
| author | Martin Geubelle <mge@odoo.com> | 2018-10-10 11:29:49 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2018-10-11 08:41:48 +0000 |
| commit | f249c5ef2a3242952e4c13b0ebca2e72f40ae064 (patch) | |
| tree | 78f57428a213f1ff8a6d8bda686a86eff3dd023f /addons/base_sparse_field/tests/test_sparse_fields.py | |
| parent | 12a795a7a0a5d4c80b46fb45372af24efcc4b1f6 (diff) | |
[FIX] web: restore broken datepicker input behavior
In Firefox, the input behavior and visual representation (navigation, caret
placement, value selection, etc.) was broken when using a datepicker (easily
reproductible on date and datetime widgets).
This was due to the `focus` event being stopped on the input, which doesn't
seem to be correctly supported by Firefox.
The deleted code was supposed to toggle the picker when the field was clicked
(see odoo/odoo@89093a1) (toggle on click and disable focus) but the lib
correctly supports on focus without extra code.
This also fixes the fact that the datepicker was not open on focus (only on
clicked). In some tests where the field was the first in the form view, it is
now correctly autofocused.
Forward-port: not useful from 12.0 because the code has changed with BS4 and
this has already been applied in odoo/odoo@6692919 and odoo/odoo@c63630d.
Closes #23438
closes odoo/odoo#27657
Diffstat (limited to 'addons/base_sparse_field/tests/test_sparse_fields.py')
0 files changed, 0 insertions, 0 deletions
