Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Normalized onChange event? #20

Closed
3 tasks done
developit opened this issue Mar 7, 2016 · 0 comments
Closed
3 tasks done

Normalized onChange event? #20

developit opened this issue Mar 7, 2016 · 0 comments

Comments

@developit
Copy link
Member

developit commented Mar 7, 2016

Migrating this from preactjs/preact#79.

Original issue reported by @chrisdavies:

In React, the onChange event is normalized across browsers (at least as far back as IE9) so that it fires any time the content of an input changes (e.g. when the user types, backspaces, deletes, etc). Is there a similarly normalized event in preact?

JSFiddle Demo

Summary: preact-compat needs to more faithfully replicate React's event normalization behavior. This issue tracks progress on that.

  • onChange fired as a "live" input event
  • onChange fired for checkbox clicks
  • onChange normalized for <select> inputs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant