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