From f01f5917d58646b96b2d6268931357b1727b992d Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Tue, 16 May 2023 03:29:29 +0700 Subject: [PATCH] fix(input): better support input type=number (#528) --- packages/oruga-next/src/components/input/Input.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/oruga-next/src/components/input/Input.vue b/packages/oruga-next/src/components/input/Input.vue index a8f761595..6c0fad426 100644 --- a/packages/oruga-next/src/components/input/Input.vue +++ b/packages/oruga-next/src/components/input/Input.vue @@ -8,8 +8,7 @@ :type="newType" :autocomplete="newAutocomplete" :maxlength="maxlength" - :value="computedValue" - @input="onInput" + v-model="computedValue" @blur="onBlur" @focus="onFocus" @invalid="onInvalid" /> @@ -20,8 +19,7 @@ ref="textarea" :class="inputClasses" :maxlength="maxlength" - :value="computedValue" - @input="onInput" + v-model="computedValue" @blur="onBlur" @focus="onFocus" @invalid="onInvalid" @@ -314,10 +312,6 @@ export default defineComponent({ }) }, - onInput(event) { - this.computedValue = event.target.value - }, - iconClick(emit, event) { this.$emit(emit, event) this.$nextTick(() => {