Skip to content

Commit

Permalink
Fix event on InputNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer authored Nov 14, 2024
1 parent 74b54e6 commit 900d23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/ving/FormInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<InputNumber v-if="type == 'number' && (isNumber(val) || isNull(val) || isUndefined(val))"
v-model="val" showButtons :placeholder="placeholder" :name="name" :id="computedId"
:autocomplete="autocomplete" :required="required" :inputClass="fieldClass" :step="step"
:incrementButtonClass="append ? 'rounded-none' : ''" @change="emit('change')"
:incrementButtonClass="append ? 'rounded-none' : ''" @update:modelValue="emit('change')"
:decrementButtonClass="append ? 'rounded-none' : ''" />
<ToggleSwitch v-else-if="type == 'switch' && (isBoolean(val) || isUndefined(val))"
v-model="val" :placeholder="placeholder" :name="name" :id="computedId"
Expand Down Expand Up @@ -150,4 +150,4 @@ const val = computed({
}
});
</script>
</script>

0 comments on commit 900d23b

Please sign in to comment.