mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Prevent Enter from crashing during Pokémon level entry (#1528)
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
// details
|
||||
'change .detailsform input': 'detailsChange',
|
||||
'change .detailsform select': 'detailsChange',
|
||||
'submit .detailsform': 'detailsChange',
|
||||
'click .changeform' : 'altForm',
|
||||
'click .altform' : 'altForm',
|
||||
|
||||
@@ -2528,7 +2529,9 @@
|
||||
|
||||
this.$chart.html(buf);
|
||||
},
|
||||
detailsChange: function () {
|
||||
detailsChange: function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
var set = this.curSet;
|
||||
if (!set) return;
|
||||
var isLetsGo = this.curTeam.format.includes('letsgo');
|
||||
|
||||
Reference in New Issue
Block a user