Skip to content

Commit

Permalink
fix(@dpc-sdp/ripple-ui-forms): always set searchInput focus
Browse files Browse the repository at this point in the history
  • Loading branch information
lambry committed Dec 19, 2024
1 parent 0dc2178 commit 8dfdcdf
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 8dfdcdf

Please sign in to comment.