Button Click event fires when pressing Enter key in different input (no forms)

后端 未结 6 2097
离开以前
离开以前 2020-12-12 21:42

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

6条回答
  •  一整个雨季
    2020-12-12 21:56

    I had the same problem and solved it by adding type="button" attribute to the

提交回复
热议问题