-
-
Notifications
You must be signed in to change notification settings - Fork 148
Onchange event on Select box triggers twice #160
Comments
@chiragmongia Ahh - you're seeing |
@developit Yes, you're right. So, I created a small jsfiddle to see what's happening. |
Ah yes - setting the JSX pragmatic to "h" actually bypasses preact-compat's VNode normalization. Since that's where the bug is, it only fires once. The default JSX pragma is React.createElement. |
@developit Thanks for the help.
I've changed it to the following and it worked-`
Now, the |
Great! I'll probably do a PR to fix the double call still, but I'm glad it's working for you. Only thing to be aware of is preact's |
@developit The |
The
onchange
event on my select box triggers twice.By debugging it, I could find that in this line, there are 2 values being passed to
multihook
function and both the values are same i.e.onchange
@developit Can you please help?
If the above is the case and it's a bug, I'll be more than happy to contribute 😄
The text was updated successfully, but these errors were encountered: