We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4237b3a commit 21b7a40Copy full SHA for 21b7a40
thaw/src/drawer/mod.rs
@@ -78,9 +78,9 @@ pub fn Drawer(
78
show.set(false);
79
}
80
};
81
- let on_esc = move |_: ev::KeyboardEvent| {
+ let on_esc = Callback::new(move |_: ev::KeyboardEvent| {
82
83
- };
+ });
84
85
view! {
86
<FocusTrap disabled=!close_on_esc active=show.signal() on_esc>
thaw/src/modal/mod.rs
@@ -34,9 +34,9 @@ pub fn Modal(
34
35
36
37
38
39
40
41
let mask_ref = NodeRef::<html::Div>::new();
42
let scrollbar_ref = ComponentRef::<ScrollbarRef>::new();
0 commit comments