File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ export default function AddressInput(props: AddressInputProps) {
268268 handlePoiSearch ( poiSearch , item . result , props . map )
269269 setText ( item . result . text ( item . result . poi ) )
270270 }
271- searchInput . current ! . blur ( )
271+ searchInput . current ! . blur ( ) // is called in combination with e.preventDefault in AutocompleteEntry->onMouseDown
272272 } }
273273 />
274274 </ ResponsiveAutocomplete >
Original file line number Diff line number Diff line change @@ -108,15 +108,16 @@ function AutocompleteEntry({
108108 return (
109109 < button
110110 className = { className }
111- // using click events for mouse interaction and touch end to select an entry.
112- onClick = { ( ) => onSelect ( ) }
113- onTouchEnd = { e => {
114- e . preventDefault ( ) // do not forward click to underlying component
115- onSelect ( )
116- } }
117111 onMouseDown = { e => {
118112 e . preventDefault ( ) // prevent blur event for our input, see #398
119113 } }
114+ // using click events for mouse interaction and touch end to select an entry.
115+ onClick = { ( ) => onSelect ( ) }
116+ // TODO NOW is this onTouchEnd workaround still required?
117+ // onTouchEnd={e => {
118+ // e.preventDefault() // do not forward click to underlying component
119+ // onSelect()
120+ // }}
120121 >
121122 { children }
122123 </ button >
You can’t perform that action at this time.
0 commit comments