mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
example: only show date if in scheduling mode
This commit is contained in:
parent
b39895fa2d
commit
3646bf31b0
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ fn TodoRow(
|
|||
prop:value=move || {
|
||||
todo.status().scheduled_for_date().map(|n| n.get().to_string())
|
||||
}
|
||||
|
||||
class:hidden=move || !todo.status().scheduled_for()
|
||||
on:change:target=move |ev| {
|
||||
if let Some(date) = todo.status().scheduled_for_date() {
|
||||
let value = ev.target().value();
|
||||
|
|
Loading…
Reference in a new issue