Bring back the sapper-noscroll attribute
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Window scroll is now been triggered manually during the page transition and not automatically by Sapper
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
export let text = ''
|
||||
export let target = null
|
||||
export let rel = null
|
||||
export let noScroll = undefined
|
||||
</script>
|
||||
|
||||
<a class="link-translate" {href} {target} {rel}>
|
||||
<a class="link-translate" {href} {target} {rel} sapper-noscroll={noScroll}>
|
||||
<slot />
|
||||
<div class="text" data-text={text}>
|
||||
<span>{text}</span>
|
||||
|
||||
Reference in New Issue
Block a user