[#407] Création d'un composant de type time #10

Merged
tristan merged 2 commits from feat/407-creation-type-time into develop 2026-03-17 12:28:34 +00:00
Showing only changes of commit 9a67f456b2 - Show all commits

View File

@@ -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
}