Fixed #675 - Add the 'enter' key support to InputNumber
parent
b17a65d98b
commit
427f53f905
|
@ -409,6 +409,14 @@ export default {
|
|||
}
|
||||
break;
|
||||
|
||||
//enter
|
||||
case 13:
|
||||
let newValue = this.validateValue(this.parseValue(this.$refs.input.$el.value));
|
||||
this.$refs.input.$el.value = this.formatValue(newValue);
|
||||
this.$refs.input.$el.setAttribute('aria-valuenow', newValue);
|
||||
this.updateModel(event, newValue);
|
||||
break;
|
||||
|
||||
//backspace
|
||||
case 8: {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue