Merge pull request #846 from odoo-dev/master-autocomplete-quick-fix-ged
[FIX] prevent an incorrect state in autocompletion
This commit is contained in:
commit
6d7f845374
|
@ -2505,7 +2505,7 @@ instance.web.search.AutoComplete = instance.web.Widget.extend({
|
|||
if (!$next.length) $next = this.$('li:first-child');
|
||||
} else {
|
||||
$next = this.$('li.oe-selection-focus').prevAll(':not(.oe-separator)').first();
|
||||
if (!$next.length) $next = this.$('li:last-child');
|
||||
if (!$next.length) $next = this.$('li:not(.oe-separator)').last();
|
||||
}
|
||||
this.focus_element($next);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue