Skip to content

Commit 2aea4a7

Browse files
committed
Bump 2.6.1
1 parent 131c961 commit 2aea4a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/usePlacesWidget.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ function usePlacesWidget(props) {
9595
if (_utils.isBrowser && window.MutationObserver && inputRef.current && inputRef.current instanceof HTMLInputElement) {
9696
observerHack.current = new MutationObserver(function () {
9797
observerHack.current.disconnect();
98-
inputRef.current.autocomplete = inputAutocompleteValue;
98+
99+
if (inputRef.current) {
100+
inputRef.current.autocomplete = inputAutocompleteValue;
101+
}
99102
});
100103
observerHack.current.observe(inputRef.current, {
101104
attributes: true,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-google-autocomplete",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "React component for google autocomplete.",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)