File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,10 @@ function usePlacesWidget(props) {
95
95
if ( _utils . isBrowser && window . MutationObserver && inputRef . current && inputRef . current instanceof HTMLInputElement ) {
96
96
observerHack . current = new MutationObserver ( function ( ) {
97
97
observerHack . current . disconnect ( ) ;
98
- inputRef . current . autocomplete = inputAutocompleteValue ;
98
+
99
+ if ( inputRef . current ) {
100
+ inputRef . current . autocomplete = inputAutocompleteValue ;
101
+ }
99
102
} ) ;
100
103
observerHack . current . observe ( inputRef . current , {
101
104
attributes : true ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-google-autocomplete" ,
3
- "version" : " 2.6.0 " ,
3
+ "version" : " 2.6.1 " ,
4
4
"description" : " React component for google autocomplete." ,
5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
You can’t perform that action at this time.
0 commit comments