From e326dae1eaceeebc8bb27994164c903b6ca5f5ec Mon Sep 17 00:00:00 2001 From: Ven Korolev Date: Thu, 26 Aug 2021 12:53:23 +0200 Subject: [PATCH] close selector bracket in utils --- lib/utils.js | 2 +- package.json | 2 +- src/utils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 947f3ae..6583a2c 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -14,7 +14,7 @@ var loadGoogleMapScript = function loadGoogleMapScript(googleMapsScriptBaseUrl, if (google.maps && google.maps.api) return Promise.resolve(); } - var scriptElements = document.querySelectorAll("script[src*=\"".concat(googleMapsScriptBaseUrl, "\"")); + var scriptElements = document.querySelectorAll("script[src*=\"".concat(googleMapsScriptBaseUrl, "\"]")); if (scriptElements && scriptElements.length) { return new Promise(function (resolve) { diff --git a/package.json b/package.json index 0da8637..e021c7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-google-autocomplete", - "version": "2.4.1", + "version": "2.4.2", "description": "React component for google autocomplete.", "main": "index.js", "types": "index.d.ts", diff --git a/src/utils.js b/src/utils.js index da11357..a791cac 100644 --- a/src/utils.js +++ b/src/utils.js @@ -11,7 +11,7 @@ export const loadGoogleMapScript = ( } const scriptElements = document.querySelectorAll( - `script[src*="${googleMapsScriptBaseUrl}"` + `script[src*="${googleMapsScriptBaseUrl}"]` ); if (scriptElements && scriptElements.length) {