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 f859212 commit 359e927Copy full SHA for 359e927
lib/components/form/location-field.js
@@ -147,7 +147,7 @@ class LocationField extends Component {
147
// IE does not use relatedTarget, so this check handles cross-browser support.
148
// see https://stackoverflow.com/a/49325196/915811
149
const target = e.relatedTarget !== null ? e.relatedTarget : document.activeElement
150
- if (!target || target.getAttribute('role') !== 'menuitem') {
+ if (!this.props.location && (!target || target.getAttribute('role') !== 'menuitem')) {
151
this.setState({ menuVisible: false, value: '', geocodedFeatures: [] })
152
}
153
0 commit comments