mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
fix: nightly Callback
This commit is contained in:
parent
683fcd8a36
commit
f1c3882b72
2 changed files with 4 additions and 4 deletions
|
@ -78,9 +78,9 @@ pub fn Drawer(
|
|||
show.set(false);
|
||||
}
|
||||
};
|
||||
let on_esc = move |_: ev::KeyboardEvent| {
|
||||
let on_esc = Callback::new(move |_: ev::KeyboardEvent| {
|
||||
show.set(false);
|
||||
};
|
||||
});
|
||||
|
||||
view! {
|
||||
<FocusTrap disabled=!close_on_esc active=show.signal() on_esc>
|
||||
|
|
|
@ -34,9 +34,9 @@ pub fn Modal(
|
|||
show.set(false);
|
||||
}
|
||||
};
|
||||
let on_esc = move |_: ev::KeyboardEvent| {
|
||||
let on_esc = Callback::new(move |_: ev::KeyboardEvent| {
|
||||
show.set(false);
|
||||
};
|
||||
});
|
||||
|
||||
let mask_ref = NodeRef::<html::Div>::new();
|
||||
let scrollbar_ref = ComponentRef::<ScrollbarRef>::new();
|
||||
|
|
Loading…
Add table
Reference in a new issue