Skip to content

Commit 2df4ea3

Browse files
authored
Merge pull request #321 from gtt-project/dkastl/issue320
Fixes zoom to feature issue when clicking "Quote" link
2 parents 201e8d9 + b2308f6 commit 2df4ea3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"style-loader": "^4.0.0",
4242
"ts-loader": "^9.5.1",
4343
"typescript": "^5.4.5",
44-
"webpack": "^5.92.0",
44+
"webpack": "^5.92.1",
4545
"webpack-cli": "^5.1.4"
4646
}
4747
}

src/components/gtt-client/init/events.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ function handleIssueSelection(this: any): void {
8282

8383

8484
/**
85-
* Handles the click event on the edit icon to update the map size when the editable form is made visible.
85+
* Handles the click event on the edit/comment icon to update the map size when the editable form is made visible.
8686
*/
8787
function handleEditIcon(this: any): void {
88-
document.querySelectorAll('div.contextual a.icon-edit').forEach((element: HTMLAnchorElement) => {
88+
document.querySelectorAll('div.contextual a.icon-edit, div.contextual a.icon-comment').forEach((element: HTMLAnchorElement) => {
8989
element.addEventListener('click', () => {
9090
setTimeout(() => {
9191
this.maps.forEach((m: any) => {
9292
m.updateSize();
9393
});
9494
zoomToExtent.call(this);
95-
}, 200);
95+
}, 500);
9696
});
9797
});
9898
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,10 +1361,10 @@ webpack-sources@^3.2.3:
13611361
resolved "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz"
13621362
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
13631363

1364-
webpack@^5.92.0:
1365-
version "5.92.0"
1366-
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.92.0.tgz#cc114c71e6851d220b1feaae90159ed52c876bdf"
1367-
integrity sha512-Bsw2X39MYIgxouNATyVpCNVWBCuUwDgWtN78g6lSdPJRLaQ/PUVm/oXcaRAyY/sMFoKFQrsPeqvTizWtq7QPCA==
1364+
webpack@^5.92.1:
1365+
version "5.92.1"
1366+
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.92.1.tgz#eca5c1725b9e189cffbd86e8b6c3c7400efc5788"
1367+
integrity sha512-JECQ7IwJb+7fgUFBlrJzbyu3GEuNBcdqr1LD7IbSzwkSmIevTm8PF+wej3Oxuz/JFBUZ6O1o43zsPkwm1C4TmA==
13681368
dependencies:
13691369
"@types/eslint-scope" "^3.7.3"
13701370
"@types/estree" "^1.0.5"

0 commit comments

Comments
 (0)