Skip to content

Commit 2c4c93c

Browse files
committed
fix: fixed missing onInput attribute for the simple input component
Also cast the event type as InputEvent instead of vue's Event type.
1 parent a95d74a commit 2c4c93c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/LibSimpleInput/LibSimpleInput.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
v-model="modelValue"
6464
v-bind="{...$attrs, class:undefined, ...ariaLabel}"
6565
@keydown.enter="emits('submit', modelValue)"
66+
@input="emits('input', $event as InputEvent)"
6667
>
6768
</template>
6869

@@ -101,6 +102,7 @@ const modelValue = defineModel<T>({ required: true })
101102
const emits = defineEmits<{
102103
/* User presses enter.*/
103104
(e: "submit", val: any): void
105+
(e: "input", val: InputEvent): void
104106
}>()
105107
const $attrs = useAttrs()
106108
const ariaLabel = useAriaLabel(props, fallbackId)

0 commit comments

Comments
 (0)