Use options parameters with types and default on smoothScroll function
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
const newPath = `/shop/poster-${value}`
|
||||
goto(newPath, { replaceState: true, noscroll: true, keepfocus: true })
|
||||
// Scroll to anchor
|
||||
setTimeout(() => smoothScroll('poster'), 1000)
|
||||
setTimeout(() => smoothScroll({ hash: 'poster' }), 1000)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user