Skip to content

Commit 3d56e24

Browse files
committed
put onchange on the parent also in case they pass a child
This does rquire bubbling to be on, so let's keep it on the input directly for now also
1 parent 0cb3315 commit 3d56e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wasm/file_input.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ impl Component for FileInput {
9393
});
9494

9595
html! {
96-
<label>
96+
<label onchange={ &onchange } >
9797
if ctx.props().drag_and_drop {
98-
<i class="drop-container" { ondrop } onchange={ &onchange } ondragover={ &noop_drag } ondragenter={ &noop_drag }>
98+
<i class="drop-container" { ondrop } ondragover={ &noop_drag } ondragenter={ &noop_drag }>
9999
{ label_text.clone() }
100100
</i>
101101
} else {

0 commit comments

Comments
 (0)