Skip to content

Commit

Permalink
ELEMENTS-1646: Improve nuxeo-path-suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
alokhyland committed Jan 8, 2025
1 parent ff03bfc commit 1868c38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/nuxeo-path-suggestion/nuxeo-path-suggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ import { FormatBehavior } from '../nuxeo-format-behavior.js';
.finally(() => {
if (this.autoValidate) {
this.validate();
const typeHeadInput = this.$.typeahead.shadowRoot.querySelector('input');
typeHeadInput.blur();
const inputLength = typeHeadInput.value.length;
typeHeadInput.setSelectionRange(inputLength, inputLength);
typeHeadInput.focus();
}
});
}
Expand Down

0 comments on commit 1868c38

Please sign in to comment.