mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-02-02 10:54:15 -05:00
fixed Box<dyn Fn + 'static> option fields (mostly in default-struct-builder)
This commit is contained in:
parent
f7040bff92
commit
f222a714b8
1 changed files with 2 additions and 2 deletions
|
@ -456,10 +456,10 @@ pub struct UseScrollOptions {
|
|||
offset: ScrollOffset,
|
||||
|
||||
/// Callback when scrolling is happening.
|
||||
on_scroll: Box<dyn CloneableFnWithArg<web_sys::Event> + 'static>,
|
||||
on_scroll: Box<dyn CloneableFnWithArg<web_sys::Event>>,
|
||||
|
||||
/// Callback when scrolling stops (after `idle` + `throttle` milliseconds have passed).
|
||||
on_stop: Box<dyn CloneableFnWithArg<web_sys::Event> + 'static>,
|
||||
on_stop: Box<dyn CloneableFnWithArg<web_sys::Event>>,
|
||||
|
||||
/// Options passed to the `addEventListener("scroll", ...)` call
|
||||
event_listener_options: web_sys::AddEventListenerOptions,
|
||||
|
|
Loading…
Add table
Reference in a new issue