fix(entry-form): clear disabilityType when disability is 'no'

Reset the disabilityType field when disability is set to 'no' to maintain data consistency
This commit is contained in:
Khafid Prayoga
2025-12-10 20:38:54 +07:00
parent 97d2b76ee3
commit 8354d3819d
@@ -91,6 +91,15 @@ watch(
immediate: true,
},
)
watch(
() => values.disability,
(newValue) => {
if (newValue === 'no') {
setFieldValue('disabilityType', undefined)
}
},
)
</script>
<template>