google-location-autocomplete-react
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -37,5 +37,5 @@ var __assign = (this && this.__assign) || function () { | ||
}); | ||
// if (defaultValue) { | ||
// autocomplete.setValue(defaultValue); | ||
// } | ||
if (defaultValue) { | ||
autocomplete_1.setValue(defaultValue); | ||
} | ||
} | ||
@@ -57,11 +57,7 @@ }; | ||
return function () { | ||
var url = "https://maps.googleapis.com/maps/api/js?key=".concat(apiKey, "&libraries=places&callback=initAutocomplete"); | ||
var script = document.querySelector("script[src=\"".concat(url, "\"]")); | ||
if (script) { | ||
script.remove(); | ||
} | ||
delete window.initAutocomplete; | ||
}; | ||
}, [apiKey]); | ||
return (_jsx("input", __assign({ ref: inputRef, type: "text" }, props))); | ||
return _jsx("input", __assign({ ref: inputRef, type: "text" }, props)); | ||
}; | ||
export default GoogleLocationAutocomplete; |
{ | ||
"name": "google-location-autocomplete-react", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"main": "dist/GoogleLocationAutocomplete.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/GoogleLocationAutocomplete.d.ts", |
5574
77