diff options
| author | bluesoft83 <bluesoft83@gmail.com> | 2017-03-03 14:12:53 +0100 |
|---|---|---|
| committer | Martin Trigaux <mart-e@users.noreply.github.com> | 2017-03-03 14:12:53 +0100 |
| commit | 2bf6e69e283841accecf2ded9ae06256dc065883 (patch) | |
| tree | d1d140ac71f3b820fd59a6e12930a4a8ec3e0e94 /addons/web/static/src | |
| parent | 0c3659e14be76a86b35925527644aabe4ed00ec2 (diff) | |
[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
Diffstat (limited to 'addons/web/static/src')
| -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 ef9bf1a6062..003b6f18d01 100644 --- a/addons/web/static/src/js/views/list_view_editable.js +++ b/addons/web/static/src/js/views/list_view_editable.js @@ -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(); |
