preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
949 stars 148 forks source link

Normalize onChangeCapture, fixes #388 #426

Closed i-like-robots closed 5 years ago

i-like-robots commented 7 years ago

This isn't the most obvious implementation I could think of, but it is about the smallest!

Here is the demo code I used to verify the change: https://gist.github.com/i-like-robots/0d6a8e20b0934d2e53d16e84ed56340c

Could do with a test but wanted to check if the implementation was OK first.