Skip to content
New issue

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

Provide support for specific events #24

Closed
kladdad opened this issue Aug 17, 2017 · 0 comments
Closed

Provide support for specific events #24

kladdad opened this issue Aug 17, 2017 · 0 comments
Assignees
Milestone

Comments

@kladdad
Copy link
Contributor

kladdad commented Aug 17, 2017

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.

@shadaj shadaj added the bug label Aug 17, 2017
@shadaj shadaj added this to the v0.1.2 milestone Aug 17, 2017
@shadaj shadaj added enhancement and removed bug labels Aug 23, 2017
@shadaj shadaj modified the milestones: v0.2.0, Backlog Nov 19, 2017
@shadaj shadaj modified the milestones: Backlog, v0.2.0 Nov 29, 2017
@shadaj shadaj self-assigned this Nov 29, 2017
@shadaj shadaj modified the milestones: v0.2.0, Backlog Dec 18, 2017
@shadaj shadaj modified the milestones: Backlog, v0.6.0 Jan 25, 2019
Atry pushed a commit to Atry/slinky that referenced this issue Jul 1, 2023
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Atry pushed a commit to Atry/slinky that referenced this issue Jul 1, 2023
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants