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