@@ -19,6 +19,7 @@ import { distanceStringImperial } from '../../util/distance'
1919import getGeocoder from '../../util/geocoder'
2020import { formatStoredPlaceName } from '../../util/map'
2121import { getActiveSearch , getShowUserSettings } from '../../util/state'
22+ import { isIE } from '../../util/ui'
2223
2324class LocationField extends Component {
2425 static propTypes = {
@@ -518,10 +519,27 @@ function createOption (icon, title, onSelect, isActive, isLast) {
518519 // style={{ borderBottom: '1px solid lightgrey' }}
519520 key = { itemKey ++ }
520521 active = { isActive } >
521- < div style = { { paddingTop : '5px' , paddingBottom : '3px' } } >
522- < div style = { { float : 'left' } } > < i className = { `fa fa-${ icon } ` } /> </ div >
523- < div style = { { marginLeft : '30px' , overflow : 'hidden' , textOverflow : 'ellipsis' , whiteSpace : 'nowrap' } } > { title } </ div >
524- </ div >
522+ { isIE ( )
523+ // In internet explorer 11, some really weird stuff is happening where it
524+ // is not possible to click the text of the title, but if you click just
525+ // above it, then it works. So, if using IE 11, just return the title text
526+ // and avoid all the extra fancy stuff.
527+ // See https://github.com/ibi-group/trimet-mod-otp/issues/237
528+ ? title
529+ : (
530+ < div style = { { paddingTop : '5px' , paddingBottom : '3px' } } >
531+ < div style = { { float : 'left' } } > < i className = { `fa fa-${ icon } ` } /> </ div >
532+ < div style = { {
533+ marginLeft : '30px' ,
534+ overflow : 'hidden' ,
535+ textOverflow : 'ellipsis' ,
536+ whiteSpace : 'nowrap'
537+ } } >
538+ { title }
539+ </ div >
540+ </ div >
541+ )
542+ }
525543 </ MenuItem >
526544}
527545
0 commit comments