File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,9 @@ export default function AddressInput(props: AddressInputProps) {
209209 setHasFocus ( true )
210210 props . clearDragDrop ( )
211211 } }
212- onBlur = { ( ) => { } }
212+ onBlur = { ( ) => {
213+ if ( ! isSmallScreen ) hideSuggestions ( ) // see #398
214+ } }
213215 value = { text }
214216 placeholder = { tr (
215217 type == QueryPointType . From ? 'from_hint' : type == QueryPointType . To ? 'to_hint' : 'via_hint'
Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ function AutocompleteEntry({
111111 e . preventDefault ( ) // do not forward click to underlying component
112112 onSelect ( )
113113 } }
114+ onMouseDown = { e => {
115+ e . preventDefault ( ) // prevent blur event for our input, see #398
116+ } }
114117 >
115118 { children }
116119 </ button >
You can’t perform that action at this time.
0 commit comments