You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sidebar/search/AddressInputAutocomplete.tsx
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,8 +116,9 @@ function AutocompleteEntry({
116
116
onSelect()
117
117
}}
118
118
onMouseDown={e=>{
119
-
e.preventDefault()// Prevent blur event for our input, see #398.
119
+
// prevents that input->onBlur is called when clicking the autocomplete item (focus would be lost and autocomplete items would disappear before they can be clicked)
120
120
// See also the onMouseDown calls in the buttons in AddressInput.tsx created for the same reason.
0 commit comments