fix: ensure computedEvents returns an empty object when componentEvents is undefined
parent
cade5b0f8f
commit
7db92b069e
|
@ -161,9 +161,11 @@ const computedProps = computed(() => {
|
|||
});
|
||||
|
||||
const computedEvents = computed(() => {
|
||||
return isFunction(componentEvents)
|
||||
? componentEvents(values.value, formApi!)
|
||||
: componentEvents;
|
||||
return (
|
||||
(isFunction(componentEvents)
|
||||
? componentEvents(values.value, formApi!)
|
||||
: componentEvents) ?? {}
|
||||
);
|
||||
});
|
||||
|
||||
watch(
|
||||
|
|
Loading…
Reference in New Issue