Prevent Enter from crashing during Pokémon level entry (#1528)

This commit is contained in:
urkerab
2020-06-12 18:06:41 +01:00
committed by GitHub
parent 4abfcc70a3
commit d25aaedaf7

View File

@@ -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');