Skip to content

Commit

Permalink
Merge pull request #2320 from tugcekucukoglu/event
Browse files Browse the repository at this point in the history
Fixed #1935  - InputNumber v2 | Emit focus and blur events added
  • Loading branch information
tugcekucukoglu authored Mar 15, 2022
2 parents 7e45058 + b6a187f commit ea2d442
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/inputnumber/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,9 @@ export default {
this.d_value = value;
this.$emit('input', value);
},
onInputFocus() {
onInputFocus(event) {
this.focused = true;
this.$emit('focus', event);
},
onInputBlur(event) {
this.focused = false;
Expand All @@ -907,6 +908,7 @@ export default {
input.value = this.formatValue(newValue);
input.setAttribute('aria-valuenow', newValue);
this.updateModel(event, newValue);
this.$emit('blur', event);
},
clearTimer() {
if (this.timer) {
Expand Down

0 comments on commit ea2d442

Please sign in to comment.