diff options
| author | Hardik Prajapati <hap@odoo.com> | 2020-04-30 13:22:01 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-05-12 06:30:21 +0000 |
| commit | 73a1e7f60ef48ee697ee9cb7d79405a4e56b3e2f (patch) | |
| tree | 0d6e39d9f3d13978c9373d2f085f347be9bad0db /addons/web/static/src/js/fields | |
| parent | 9c51b20cc0ddcb857c17f64f210288e328135bdf (diff) | |
[FIX] web: select date/datetime value when tabbing in
before this commit,
tabbing into the date or datetime field input it has only focus, value is not
selected.
after this commit,
navigate through a view in edit mode with the TAB key, when focus comes into
date/dateetime field input then input is focused and value of date/datetime
field is also get selected.
task-2246593
closes odoo/odoo#51062
X-original-commit: 962e4e18b559d90aa3456c77035659ac8017501d
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index f5f59235a0c..bf225d7ea99 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -773,7 +773,7 @@ var FieldDate = InputField.extend({ */ activate: function () { if (this.isFocusable() && this.datewidget) { - this.datewidget.focus(); + this.datewidget.$input.select(); return true; } return false; |
