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 7, 2025
1 parent 13c8f65 commit 8bd43b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 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,13 @@ import { FormatBehavior } from '../nuxeo-format-behavior.js';
.finally(() => {
if (this.autoValidate) {
this.validate();
const typeHeadInput = this.$.typeahead.shadowRoot.querySelector('input');
setTimeout(() => {
typeHeadInput.blur();
const inputLength = typeHeadInput.value.length;
typeHeadInput.setSelectionRange(inputLength, inputLength);
typeHeadInput.focus();
}, 0);
}
});
}
Expand Down

0 comments on commit 8bd43b7

Please sign in to comment.