Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Commit 7fdb6de

Browse files
committed
v1.2.7: Stop propagation on map click, Clear focus after deactivating coordinate search
1 parent c02cd3f commit 7fdb6de

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.7
2+
* Stop propagation on map click to prevent e.g. feature info from triggering as well
3+
* Clear focus after deactivating coordinate search
4+
15
## 1.2.6
26
* Fix errors processing invalid srs list entries
37

Resources/public/mapbender.element.coordinatesutility.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,12 @@
110110
if (!widget.isPopUpDialog) {
111111
var coordinateSearchButton = $('.coordinate-search', this.element);
112112

113-
coordinateSearchButton.on('click', function () {
113+
coordinateSearchButton.on('click', function (e) {
114114
var isActive = $(this).hasClass('active');
115115

116116
if (isActive) {
117117
widget.deactivate();
118+
this.blur();
118119
} else {
119120
widget.activate();
120121
}
@@ -307,6 +308,7 @@
307308
if (!this.mapClickActive) {
308309
return;
309310
}
311+
event.stopPropagation();
310312
var x = this.lon = data.coordinate[0];
311313
var y = this.lat = data.coordinate[1];
312314
var mapSrs = this.mbMap.getModel().getCurrentProjectionCode();

0 commit comments

Comments
 (0)