From 1868c38887d7935406d4224e27abd694c70ca1e5 Mon Sep 17 00:00:00 2001 From: alokhyland Date: Tue, 7 Jan 2025 17:01:50 +0530 Subject: [PATCH] ELEMENTS-1646: Improve nuxeo-path-suggestion --- ui/nuxeo-path-suggestion/nuxeo-path-suggestion.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/nuxeo-path-suggestion/nuxeo-path-suggestion.js b/ui/nuxeo-path-suggestion/nuxeo-path-suggestion.js index 7e63596e1..81ef4cf76 100644 --- a/ui/nuxeo-path-suggestion/nuxeo-path-suggestion.js +++ b/ui/nuxeo-path-suggestion/nuxeo-path-suggestion.js @@ -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(); } }); }