Wednesday, September 21, 2016

Button Click event fires when pressing Enter key in different input

I had the same problem and solved it by adding type="button" attribute to the <button> element, by which IE thinks the button as a simple button instead of a submit button (which is default behavior of a <button> element).


No comments: