[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).
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user