mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 08:34:15 -05:00
fix: nightly mode Message error
This commit is contained in:
parent
64ba5a9221
commit
7a1a8a0d9e
1 changed files with 2 additions and 2 deletions
|
@ -72,9 +72,9 @@ fn Message(message: MessageType, #[prop(into)] on_close: Callback<Uuid, ()>) ->
|
|||
let style = el.style();
|
||||
let _ = style.set_property("max-height", &format!("{}px", el.offset_height()));
|
||||
};
|
||||
let on_after_leave = move |_| {
|
||||
let on_after_leave = Callback::new(move |_| {
|
||||
queue_microtask(move || on_close.call(id));
|
||||
};
|
||||
});
|
||||
|
||||
view! {
|
||||
<CSSTransition
|
||||
|
|
Loading…
Add table
Reference in a new issue