Fix broken interaction
This commit is contained in:
parent
d1a97bd53c
commit
ba41a3b2fa
2
justfile
2
justfile
@ -38,7 +38,7 @@ docs-build: output-clean
|
||||
rust-watch:
|
||||
cargo watch -x fmt -x check -x build
|
||||
|
||||
js-dev:
|
||||
js-dev: wasm-build
|
||||
yarn --cwd ./web-frontend/ dev
|
||||
|
||||
fmt:
|
||||
|
@ -33,7 +33,7 @@ export function createUrlStore(ssrUrl) {
|
||||
window.addEventListener('hashchange', updateHref);
|
||||
|
||||
return {
|
||||
subscribe: derived(href, ($href) => new URL($href)).subscribe,
|
||||
subscribe: derived(href, ($href) => new URL($href)).subscribe
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,11 @@
|
||||
coordinateInputValue = addr.allCoordinates[selectedCoordinateType];
|
||||
}
|
||||
|
||||
history.replaceStateNoNotification(undefined, undefined, `#${addr.address.replaceAll(' ', '-')}`);
|
||||
history.replaceState(
|
||||
undefined,
|
||||
undefined,
|
||||
`#${addr.address.replaceAll(' ', '-')}`
|
||||
);
|
||||
|
||||
map.panTo(latlng, 20);
|
||||
leaflet.popup().setLatLng(latlng).setContent(`${addr.address}`).openOn(map);
|
||||
|
Loading…
Reference in New Issue
Block a user