Skip to content
Discussion options

You must be logged in to vote

Oh actually I do see what's going wrong:

let elem = ev.unchecked_into::<HtmlInputElement>();

this is wrong. You're typecasting an Event into an HtmlInputElement. You want

let elem = ev.target().unwrap().unchecked_into::<HtmlInputElement>();

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sebadob
Comment options

You must be logged in to vote
3 replies
@qrilka
Comment options

@gbj
Comment options

gbj Jan 31, 2024
Maintainer

@qrilka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants