react-native-google-places-autocomplete 2.5.4 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -178,7 +178,10 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => {
178
178
  url === 'https://maps.googleapis.com/maps/api';
179
179
 
180
180
  const _abortRequests = () => {
181
- _requests.map((i) => i.abort());
181
+ _requests.map((i) => {
182
+ i.onreadystatechange = null;
183
+ i.abort();
184
+ });
182
185
  _requests = [];
183
186
  };
184
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-google-places-autocomplete",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "Customizable Google Places autocomplete component for iOS and Android React-Native apps",
5
5
  "main": "GooglePlacesAutocomplete.js",
6
6
  "types": "GooglePlacesAutocomplete.d.ts",