diff --git a/package.json b/package.json index 47d9d6e..3bf5758 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "style-loader": "^4.0.0", "ts-loader": "^9.5.1", "typescript": "^5.4.5", - "webpack": "^5.92.0", + "webpack": "^5.92.1", "webpack-cli": "^5.1.4" } } diff --git a/src/components/gtt-client/init/events.ts b/src/components/gtt-client/init/events.ts index 37fb3e1..d6f52bc 100644 --- a/src/components/gtt-client/init/events.ts +++ b/src/components/gtt-client/init/events.ts @@ -82,17 +82,17 @@ function handleIssueSelection(this: any): void { /** - * Handles the click event on the edit icon to update the map size when the editable form is made visible. + * Handles the click event on the edit/comment icon to update the map size when the editable form is made visible. */ function handleEditIcon(this: any): void { - document.querySelectorAll('div.contextual a.icon-edit').forEach((element: HTMLAnchorElement) => { + document.querySelectorAll('div.contextual a.icon-edit, div.contextual a.icon-comment').forEach((element: HTMLAnchorElement) => { element.addEventListener('click', () => { setTimeout(() => { this.maps.forEach((m: any) => { m.updateSize(); }); zoomToExtent.call(this); - }, 200); + }, 500); }); }); } diff --git a/yarn.lock b/yarn.lock index 45cd6d2..618f92f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1361,10 +1361,10 @@ webpack-sources@^3.2.3: resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@^5.92.0: - version "5.92.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.92.0.tgz#cc114c71e6851d220b1feaae90159ed52c876bdf" - integrity sha512-Bsw2X39MYIgxouNATyVpCNVWBCuUwDgWtN78g6lSdPJRLaQ/PUVm/oXcaRAyY/sMFoKFQrsPeqvTizWtq7QPCA== +webpack@^5.92.1: + version "5.92.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.92.1.tgz#eca5c1725b9e189cffbd86e8b6c3c7400efc5788" + integrity sha512-JECQ7IwJb+7fgUFBlrJzbyu3GEuNBcdqr1LD7IbSzwkSmIevTm8PF+wej3Oxuz/JFBUZ6O1o43zsPkwm1C4TmA== dependencies: "@types/eslint-scope" "^3.7.3" "@types/estree" "^1.0.5"