Fixes a strange issue where a <button> inside a nested <form> will trigger the event twice (1 for button, 1 for form)