mirror of
https://github.com/yewstack/yew.git
synced 2026-02-01 17:26:28 +00:00
Use oninput instead of onclick
This commit is contained in:
parent
78b119b1ee
commit
6d1b24d7b2
@ -199,7 +199,7 @@ fn view_entry((idx, entry): (usize, &Entry)) -> Html<Msg> {
|
||||
html! {
|
||||
<li>
|
||||
<div class="view",>
|
||||
<input class="toggle", type="checkbox", checked=entry.completed, onclick=move|_| Msg::Toggle(idx), />
|
||||
<input class="toggle", type="checkbox", checked=entry.completed, oninput=move|_| Msg::Toggle(idx), />
|
||||
<label>{ &entry.description }</label>
|
||||
<button class="destroy", onclick=move |_| Msg::Remove(idx),></button>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user