Pressing enter when any <input type="text"> calls the (click) output on the map-leaderboards-suggestion "Add Leaderboard" button. I have NO IDEA why it's happening. As far as I can tell it's only the text inputs, maybe some misconfiguration of the overall form.
The actual issue is that default button type is "submit" and submit buttons trigger their onclick event when enter is pressed on text field in the same form. @kanoka42 's solution looks good
Pressing enter when any
<input type="text">
calls the(click)
output on themap-leaderboards-suggestion
"Add Leaderboard" button. I have NO IDEA why it's happening. As far as I can tell it's only the text inputs, maybe some misconfiguration of the overall form.