Skip to content

Commit 52cf207

Browse files
committed
Fix all the links breaking with the fixed maplibre zoom fragment behavior
We're abusing href="#" but need to stop the browser from touching the URL at all. This seems to do it.
1 parent 228487c commit 52cf207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/common/Link.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<!-- svelte-ignore a11y-invalid-attribute -->
2-
<a href="#" on:click><slot /></a>
2+
<a href="#" on:click|preventDefault><slot /></a>

0 commit comments

Comments
 (0)