alexmingoia / purescript-pux

Build type-safe web apps with PureScript.
https://www.purescript-pux.org
Other
566 stars 76 forks source link

targetValue doesn't check for undefined value #119

Closed mbid closed 7 years ago

mbid commented 7 years ago

Just browsing the source code, I found that targetValue checks only whether event.target is undefined and not whether event.target.value is. But e.g. h1 elements don't have values while you can attach click listeners to it. The fix is trivial of course, but I don't know whether there are also other places where this issue occures.