This logic is firing when pressing \"Enter\" in the \"Amount\" input, and I don\'t believe it should (it doesn\'t in Chrome). How can I prevent this, and if not prevent it
I was having this issue with ASP.NET WebForms:
This can NOT be solved by just adding type="button" because ASP.NET replaces it with type="submit" (you can see this behavior in the browser if you inspect the element.)
The correct way to do this in asp.net is to add
to the button. ASP will automatically add the type="button" attribute.