It seems that sometimes (but not always) my button click event is being fired twice. The fact that it seems to happen sometimes but not always is really puzzling me. Here is m
I had the same problem, and it took me a while to figure it out! If you add type="button" to your button, it seems to fix the issue.