Skip to content

Commit

Permalink
BaseInput: Focus main input if the last term is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Aug 29, 2022
1 parent 75b1869 commit 0f3d98e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asset/js/widget/BaseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ define(["../notjQuery", "Completer"], function ($, Completer) {

if (from === -1) {
toFocus = inputs.shift();
if (typeof toFocus === 'undefined') {
toFocus = this.input;
}
} else if (from + 1 < inputs.length) {
toFocus = inputs[from + 1];
} else {
Expand Down

0 comments on commit 0f3d98e

Please sign in to comment.