Skip to content

Commit

Permalink
fix(input): better support input type=number (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov authored May 15, 2023
1 parent a33ee8e commit f01f591
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/oruga-next/src/components/input/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
:type="newType"
:autocomplete="newAutocomplete"
:maxlength="maxlength"
:value="computedValue"
@input="onInput"
v-model="computedValue"
@blur="onBlur"
@focus="onFocus"
@invalid="onInvalid" />
Expand All @@ -20,8 +19,7 @@
ref="textarea"
:class="inputClasses"
:maxlength="maxlength"
:value="computedValue"
@input="onInput"
v-model="computedValue"
@blur="onBlur"
@focus="onFocus"
@invalid="onInvalid"
Expand Down Expand Up @@ -314,10 +312,6 @@ export default defineComponent({
})
},
onInput(event) {
this.computedValue = event.target.value
},
iconClick(emit, event) {
this.$emit(emit, event)
this.$nextTick(() => {
Expand Down

0 comments on commit f01f591

Please sign in to comment.