svelte-scrollto-element
svelte-scrollto-element copied to clipboard
Make the options object optional when using actions like use:scrolltotop
Hi!
Just started using this library and its great and easy to use, however i would love if at least the scrolltotop and scrolltobottom actions options would be optional, since for my use case i don't need any extra options, but i still have to pass an empty object to satisfy the required options object, which looks kinda messy in the code template.
So more of a nice to have thing, but i feel like it makes sense to have them be optional in the case of scrolltotop and scrolltobottom, which technically don't need any extra target or options to function properly.
Hi @MarcusSarnes Let's try this version and let me know ;)
"svelte-scrollto-element": "0.8.0-next.2",
Hey @bartholomej. I encountered a similar problem. In version 0.8.0-next.2 use:scrolltobottom without options does not work at all. :( I get the following error: