Closed mbid closed 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.
targetValue
event.target
event.target.value
h1
click
Just browsing the source code, I found that
targetValue
checks only whetherevent.target
is undefined and not whetherevent.target.value
is. But e.g.h1
elements don't have values while you can attachclick
listeners to it. The fix is trivial of course, but I don't know whether there are also other places where this issue occures.