mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
Fixed compile errors
This commit is contained in:
parent
752cf1f832
commit
37f4a928c9
2 changed files with 8 additions and 2 deletions
|
@ -398,6 +398,8 @@ macro_rules! impl_from_strings_inner {
|
|||
let _ = sel;
|
||||
None
|
||||
} else {
|
||||
use wasm_bindgen::JsCast;
|
||||
|
||||
if let Ok(node_list) = document().query_selector_all(sel) {
|
||||
let mut list = Vec::with_capacity(node_list.length() as usize);
|
||||
for i in 0..node_list.length() {
|
||||
|
|
|
@ -34,8 +34,12 @@ where
|
|||
}
|
||||
};
|
||||
|
||||
on_cleanup(move || {
|
||||
clear_timeout(&timer);
|
||||
on_cleanup({
|
||||
let timer = Rc::clone(&timer);
|
||||
|
||||
move || {
|
||||
clear_timeout(&timer);
|
||||
}
|
||||
});
|
||||
|
||||
let ms = ms.into();
|
||||
|
|
Loading…
Add table
Reference in a new issue