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

Commit b7ead1a

Browse files
authored
Merge pull request #164 from alvarosaburido/bugfix/cannot-read-property-dirty-of-undefi
fix(events): add condition for control in input-events
2 parents 1f058cc + 709bb42 commit b7ead1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/composables/input-events.ts

+1-1
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)