Update input-number.vue

remove `on-enter` because excessive and inflexible
This commit is contained in:
Aresn 2017-11-09 20:31:47 -06:00 committed by GitHub
parent c21a814287
commit a2a18a4600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,12 +238,12 @@
}); });
}, },
focus () { focus () {
this.$emit('on-focus');
this.focused = true; this.focused = true;
this.$emit('on-focus');
}, },
blur () { blur () {
this.$emit('on-blur');
this.focused = false; this.focused = false;
this.$emit('on-blur');
}, },
keyDown (e) { keyDown (e) {
if (e.keyCode === 38) { if (e.keyCode === 38) {
@ -252,8 +252,6 @@
} else if (e.keyCode === 40) { } else if (e.keyCode === 40) {
e.preventDefault(); e.preventDefault();
this.down(e); this.down(e);
} else if (e.keyCode === 13) {
this.$emit('on-enter');
} }
}, },
change (event) { change (event) {