We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the following code, where I am trying to get the value of a text field in response to a change event.
def setCity(event: Event): Unit = { val value = event.target.asInstanceOf[HTMLInputElement].value setState(state.copy(city = value)) }
It would be nice to be able to specify a more specific event type instead of Event in onChange to avoid the asInstanceOf[HTMLInputElement] part.
Event
onChange
asInstanceOf[HTMLInputElement]
The text was updated successfully, but these errors were encountered:
Update sbt-dynver to 4.1.1 in template (shadaj#24)
75fd5ee
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Update sbt to 1.9.1 in template (shadaj#24)
fa38523
shadaj
Successfully merging a pull request may close this issue.
Consider the following code, where I am trying to get the value of a text field in response to a change event.
It would be nice to be able to specify a more specific event type instead of
Event
inonChange
to avoid theasInstanceOf[HTMLInputElement]
part.The text was updated successfully, but these errors were encountered: