[FIX] web: do not open datepicker on focus
Before this rev., the datepicker was opened when a date(time) field
was focused (e.g. with keyboard navigation). We don't want this
behavior anymore, and we want the datepicker to open only when the
user clicks in the input. This rev. makes this change.
Moreover, this allowed to refined the keyboard navigation (ESC) in
editable list views: when a datepicker is opened, and the user
presses ESC, we close the datepicker, but we keep the row in
edition, whereas before this rev., the row was switched to readonly.
closes odoo/odoo#32408
Signed-off-by:
Martin Geubelle (mge) <mge@openerp.com>
Showing
- addons/web/static/src/js/widgets/date_picker.js 31 additions, 4 deletionsaddons/web/static/src/js/widgets/date_picker.js
- addons/web/static/tests/fields/basic_fields_tests.js 18 additions, 10 deletionsaddons/web/static/tests/fields/basic_fields_tests.js
- addons/web/static/tests/fields/relational_fields/field_one2many_tests.js 0 additions, 5 deletions...ic/tests/fields/relational_fields/field_one2many_tests.js
- addons/web/static/tests/helpers/test_utils_dom.js 10 additions, 9 deletionsaddons/web/static/tests/helpers/test_utils_dom.js
- addons/web/static/tests/views/list_tests.js 19 additions, 15 deletionsaddons/web/static/tests/views/list_tests.js
Loading
Please register or sign in to comment