mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] account_reconciliation_widget: only stop up down key events
After the previous commit (311a0fa) users couldn't use the tab key
to navigate over manual item fields.
TT45219
This commit is contained in:
@@ -53,7 +53,11 @@ odoo.define("account.ReconciliationClientAction", function (require) {
|
||||
const $input = ev.target.$input;
|
||||
// When we're on a relational field, we want to navigate inside the record
|
||||
// selector, otherwise we'll be catching a wrong navigation event
|
||||
if ($input && $input.hasClass("ui-autocomplete-input")) {
|
||||
if (
|
||||
["up", "down"].includes(ev.data.direction) &&
|
||||
$input &&
|
||||
$input.hasClass("ui-autocomplete-input")
|
||||
) {
|
||||
ev.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user