fix: default values
This commit is contained in:
@@ -202,10 +202,10 @@ const mergedInputClass = (field: 'hours' | 'minutes') =>
|
|||||||
)
|
)
|
||||||
|
|
||||||
const emitCurrentValue = () => {
|
const emitCurrentValue = () => {
|
||||||
const formattedHours = padSegment(hoursValue.value)
|
const formattedHours = hoursValue.value ? padSegment(hoursValue.value) : '00'
|
||||||
const formattedMinutes = padSegment(minutesValue.value)
|
const formattedMinutes = minutesValue.value ? padSegment(minutesValue.value) : '00'
|
||||||
|
|
||||||
if (!formattedHours && !formattedMinutes) {
|
if (!hoursValue.value && !minutesValue.value) {
|
||||||
emit('update:modelValue', '')
|
emit('update:modelValue', '')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user