We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131c961 commit 2aea4a7Copy full SHA for 2aea4a7
lib/usePlacesWidget.js
@@ -95,7 +95,10 @@ function usePlacesWidget(props) {
95
if (_utils.isBrowser && window.MutationObserver && inputRef.current && inputRef.current instanceof HTMLInputElement) {
96
observerHack.current = new MutationObserver(function () {
97
observerHack.current.disconnect();
98
- inputRef.current.autocomplete = inputAutocompleteValue;
+
99
+ if (inputRef.current) {
100
+ inputRef.current.autocomplete = inputAutocompleteValue;
101
+ }
102
});
103
observerHack.current.observe(inputRef.current, {
104
attributes: true,
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-google-autocomplete",
3
- "version": "2.6.0",
+ "version": "2.6.1",
4
"description": "React component for google autocomplete.",
5
"main": "index.js",
6
"types": "index.d.ts",
0 commit comments