We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 346672d commit c584da9Copy full SHA for c584da9
lib/components/form/location-field.js
@@ -179,11 +179,11 @@ class LocationField extends Component {
179
180
// 'Enter' keypress serves two purposes:
181
// - If pressed when typing in search string, switch from 'autocomplete'
182
- // to 'search' geocosing
+ // to 'search' geocoding
183
// - If pressed when dropdown results menu is active, apply the location
184
// associated with current selected menu item
185
case 'Enter':
186
- if (activeIndex) { // Menu is active
+ if (typeof activeIndex === 'number') { // Menu is active
187
// Retrieve location selection handler from lookup object and invoke
188
const locationSelected = this.locationSelectedLookup[activeIndex]
189
if (locationSelected) locationSelected()
0 commit comments