diff --git a/frontend/src/components/ComboboxInput.vue b/frontend/src/components/ComboboxInput.vue index 52507f8172..b30daa6259 100644 --- a/frontend/src/components/ComboboxInput.vue +++ b/frontend/src/components/ComboboxInput.vue @@ -80,6 +80,7 @@ const clearSelection = async () => { if (showDropdown.value) { await updateCurrentItems("") } + inputFieldRef.value?.focus() } const setChosenItem = (item: ComboboxItem) => { @@ -103,12 +104,6 @@ const onEnter = async () => { await toggleDropdown() } -const onFocus = async () => { - if (!showDropdown.value) await toggleDropdown() - if (currentlyDisplayedItems.value) - candidateForSelection.value = currentlyDisplayedItems.value[0] -} - const keyup = () => { if (focusedItemIndex.value > 1) { focusedItemIndex.value -= 1 @@ -254,7 +249,6 @@ export type InputModelProps = :readonly="false" tabindex="0" @click="selectAllText" - @focus="onFocus" @input="onTextChange" @keydown.enter="onEnter" @keydown.esc="closeDropdownAndRevertToLastSavedValue" diff --git a/frontend/src/shared/components/input/NestedInput.vue b/frontend/src/shared/components/input/NestedInput.vue index cac26236ea..bb478c22a3 100644 --- a/frontend/src/shared/components/input/NestedInput.vue +++ b/frontend/src/shared/components/input/NestedInput.vue @@ -54,6 +54,23 @@ function toggleContentVisibility(): void {