Skip to content

Commit

Permalink
do not call blur() on TAB, fixes #404
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Nov 3, 2024
1 parent 286caee commit 4718098
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sidebar/search/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export default function AddressInput(props: AddressInputProps) {
(event: React.KeyboardEvent<HTMLInputElement>) => {
const inputElement = event.target as HTMLInputElement
if (event.key === 'Escape') {
inputElement.blur()
// onBlur is deactivated for mobile so force:
setHasFocus(false)
setText(origText)
Expand Down Expand Up @@ -164,7 +163,6 @@ export default function AddressInput(props: AddressInputProps) {
props.onAddressSelected(item.toText(), item.point)
}
}
inputElement.blur()
// onBlur is deactivated for mobile so force:
setHasFocus(false)
hideSuggestions()
Expand Down

0 comments on commit 4718098

Please sign in to comment.