diff options
| author | qsm-odoo <qsm@odoo.com> | 2015-09-29 10:25:11 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2015-09-29 15:14:39 +0200 |
| commit | 1574f1c506d906ea5980bbc190174a5a613a8f0c (patch) | |
| tree | 06a34f0ffddfb5509c8dba1db3cf97ace5caf19c /addons | |
| parent | 51a923a734d8407730ab8185bf6b5695f94bfb55 (diff) | |
[FIX] web: listview editable tab key to go to next line
This was not working if the last field of the line was a DOM element
without any descendant (example: a simple input element).
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/js/views/list_view_editable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/list_view_editable.js b/addons/web/static/src/js/views/list_view_editable.js index 3df919386e7..9a38d27e050 100644 --- a/addons/web/static/src/js/views/list_view_editable.js +++ b/addons/web/static/src/js/views/list_view_editable.js @@ -781,7 +781,7 @@ ListView.include(/** @lends instance.web.ListView# */{ .last() .value(); // tabbed from last field in form - if (last_field && last_field.$el.has(e.target).length) { + if (last_field && $(e.target).closest(last_field.el).length) { e.preventDefault(); return this._next(); } |
