Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 9a55d75

Browse files
committed
prevent event propagation
1 parent f0464a3 commit 9a55d75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/assets/js/l.control.geocoder.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@
174174
'<img src="' + result.icon + '"/>' :
175175
'') +
176176
result.name + '</a>';
177-
L.DomEvent.addListener(li, 'click', function clickHandler() {
177+
L.DomEvent.addListener(li, 'click', function clickHandler(e) {
178+
e.preventDefault();
178179
this._geocodeResultSelected(result);
179180
}, this);
180181

0 commit comments

Comments
 (0)