Skip to content

Commit

Permalink
Merge pull request #1413 from dpc-sdp/feature/dropdown-combobox
Browse files Browse the repository at this point in the history
[SD-180] always set input focus
  • Loading branch information
lambry authored Dec 19, 2024
2 parents 937003b + 8dfdcdf commit 824bb99
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ const handleSearchUpdate = (event: Event) => {
}
}
const handleSearchBlur = () => {
searchFocused.value = false
}
const handleSearchFocus = () => (searchFocused.value = true)
const handleSearchBlur = () => (searchFocused.value = false)
watch(
() => props.value,
Expand Down Expand Up @@ -600,6 +599,7 @@ const hasValue = computed((): boolean => {
autocomplete="off"
@keydown.enter.prevent="handleSearchSubmit"
@keydown.left.stop="handleSearchLeft"
@focus="handleSearchFocus"
@blur="handleSearchBlur"
@input="handleSearchUpdate"
/>
Expand Down

0 comments on commit 824bb99

Please sign in to comment.