Skip to content

Commit

Permalink
Refactor #633
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Nov 26, 2020
1 parent bddfb41 commit 9aa51b2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/inputnumber/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -803,15 +803,14 @@ export default {
onInputFocus() {
this.focused = true;
},
onInputBlur() {
onInputBlur(event) {
this.focused = false;
if (this.$refs && this.$refs.input) {
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);
}
let input = event.target;
let newValue = this.validateValue(this.parseValue(input.value));
input.value = this.formatValue(newValue);
input.setAttribute('aria-valuenow', newValue);
this.updateModel(event, newValue);
},
clearTimer() {
if (this.timer) {
Expand Down

0 comments on commit 9aa51b2

Please sign in to comment.