svelte-scrollto-element icon indicating copy to clipboard operation
svelte-scrollto-element copied to clipboard

Make the options object optional when using actions like use:scrolltotop

Open MarGustafsson opened this issue 2 years ago • 2 comments

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.

MarGustafsson avatar Jan 31 '23 07:01 MarGustafsson

Hi @MarcusSarnes Let's try this version and let me know ;)

"svelte-scrollto-element": "0.8.0-next.2",

bartholomej avatar Mar 05 '23 09:03 bartholomej

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: image

Serator avatar May 20 '23 18:05 Serator