Fixed age calculator visibility
This commit is contained in:
@@ -135,7 +135,7 @@ function convertToAge(dob: string) {
|
||||
<FormControl>
|
||||
<template class="flex items-center gap-10">
|
||||
<DateInput :model-value="(value as string) ?? ''" :disabled="readOnly" @update:model-value="handleChange" />
|
||||
<p v-if="value != undefined" class="text-muted-foreground">Age: {{ convertToAge(value) }}</p>
|
||||
<p v-if="props.readOnly" class="text-muted-foreground">Age: {{ convertToAge(value) }}</p>
|
||||
</template>
|
||||
</FormControl>
|
||||
<div class="h-4">
|
||||
|
||||
Reference in New Issue
Block a user