mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -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;
|
let _ = sel;
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
|
use wasm_bindgen::JsCast;
|
||||||
|
|
||||||
if let Ok(node_list) = document().query_selector_all(sel) {
|
if let Ok(node_list) = document().query_selector_all(sel) {
|
||||||
let mut list = Vec::with_capacity(node_list.length() as usize);
|
let mut list = Vec::with_capacity(node_list.length() as usize);
|
||||||
for i in 0..node_list.length() {
|
for i in 0..node_list.length() {
|
||||||
|
|
|
@ -34,8 +34,12 @@ where
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
on_cleanup(move || {
|
on_cleanup({
|
||||||
|
let timer = Rc::clone(&timer);
|
||||||
|
|
||||||
|
move || {
|
||||||
clear_timeout(&timer);
|
clear_timeout(&timer);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let ms = ms.into();
|
let ms = ms.into();
|
||||||
|
|
Loading…
Add table
Reference in a new issue