Skip to content

Commit

Permalink
Bump 2.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorPro committed Nov 24, 2021
1 parent 131c961 commit 2aea4a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/usePlacesWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ function usePlacesWidget(props) {
if (_utils.isBrowser && window.MutationObserver && inputRef.current && inputRef.current instanceof HTMLInputElement) {
observerHack.current = new MutationObserver(function () {
observerHack.current.disconnect();
inputRef.current.autocomplete = inputAutocompleteValue;

if (inputRef.current) {
inputRef.current.autocomplete = inputAutocompleteValue;
}
});
observerHack.current.observe(inputRef.current, {
attributes: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-google-autocomplete",
"version": "2.6.0",
"version": "2.6.1",
"description": "React component for google autocomplete.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 2aea4a7

Please sign in to comment.