Skip to content

Commit 8fb4a79

Browse files
committed
fix: fix AFCL input return type
1 parent 55429f2 commit 8fb4a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/afcl/Input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ref="input"
1313
v-bind="$attrs"
1414
:type="type"
15-
@input="$emit('update:modelValue', $event.target?.value)"
15+
@input="$emit('update:modelValue', type === 'number' ? Number($event.target?.value) : $event.target?.value)"
1616
:value="modelValue"
1717
aria-describedby="helper-text-explanation"
1818
class="afcl-input inline-flex bg-lightInputBackground border border-lightInputBorder text-lightInputText text-sm rounded-0 focus:ring-lightPrimary focus:border-lightPrimary dark:focus:ring-darkPrimary dark:focus:border-darkPrimary

0 commit comments

Comments
 (0)