Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 709bb42

Browse files
committed
fix(events): add condition for control in input-events
1 parent 1f058cc commit 709bb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/input-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function useInputEvents(props: any, emit: any) {
3232
}
3333

3434
watch(props, (form: any) => {
35-
if (!form.control.dirty) {
35+
if (form?.control && !form?.control?.dirty) {
3636
form.control.dirty = true;
3737
emit('changed', form.control.value);
3838
}

0 commit comments

Comments
 (0)