Avoid route change scroll when clicking on links
sapper-noscroll here for the rescue, keeps the scroll position and loads the new page content
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
</script>
|
||||
|
||||
<div class="location" data-aos="location">
|
||||
<a href="/location/{location.country.slug}/{location.slug}" rel="prefetch">
|
||||
<a href="/location/{location.country.slug}/{location.slug}" rel="prefetch" sapper-noscroll>
|
||||
<img src={location.country.flag.full_url} alt="Flag of {location.country.name}">
|
||||
<div class="anim-mask mask-city">
|
||||
<h3 class="location__city">{location.name}</h3>
|
||||
|
||||
Reference in New Issue
Block a user