Skip to content

Commit c8f6f39

Browse files
authored
fix(spinner): properly stop loading spinner
Spinner Fix
2 parents 1f2f9f3 + 00b8f99 commit c8f6f39

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

__snapshots__/index.test.js.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ exports[`Geocoder should render 1`] = `
2424
loadOptions={[Function]}
2525
loadingPlaceholder="Loading..."
2626
minimumInput={3}
27+
onBlurResetsInput={false}
2728
onChange={[Function]}
2829
options={Array []}
2930
reverseSearch={[Function]}
@@ -69,7 +70,7 @@ exports[`Geocoder should render 1`] = `
6970
minimumInput={3}
7071
multi={false}
7172
noResultsText="Type to search"
72-
onBlurResetsInput={true}
73+
onBlurResetsInput={false}
7374
onChange={[Function]}
7475
onCloseResetsInput={true}
7576
onInputChange={[Function]}

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ class Geocoder extends Component {
9090
callback(null, {
9191
options: this.defaultOptions()
9292
})
93+
} else {
94+
callback(null)
9395
}
9496
} else {
9597
const autocompleteQuery = {
@@ -195,6 +197,7 @@ class Geocoder extends Component {
195197
onChange={this._onChange}
196198
ref={this._saveRef}
197199
value={this.state.value}
200+
onBlurResetsInput={false}
198201
/>
199202
)
200203
}

0 commit comments

Comments
 (0)