[FIX] web: keep focus field when navigating with keyboard
When moving with keys up or down on editable list view, jumping of line was
bringing the cusor back to the first cell.
The cell focus is stored in the option dict (e.g. {'field_focus': 'name'}.
Previous code was discarding the content of the given option dict to create
a new one.
Closes #15703
This commit is contained in:
committed by
Martin Trigaux
parent
0c3659e14b
commit
2bf6e69e28
@@ -641,7 +641,7 @@ ListView.include(/** @lends instance.web.ListView# */{
|
||||
if (saveInfo.created) {
|
||||
return self.start_edition();
|
||||
}
|
||||
var options = { wraparound: !self.is_action_enabled('create') };
|
||||
options.wraparound = !self.is_action_enabled('create');
|
||||
var record = self.records[next_record](saveInfo.record, options);
|
||||
if (record === undefined) {
|
||||
return self.start_edition();
|
||||
|
||||
Reference in New Issue
Block a user