fix focus & click behaviour of time range selector and task project dropdown modal

This commit is contained in:
Gregor Vostrak
2024-06-24 14:31:24 +02:00
parent fc0a0615cb
commit eefa7c8ca8
5 changed files with 17 additions and 4 deletions

View File

@@ -119,6 +119,13 @@ async function updateTimeRange(newStart: string) {
}
}
}
const startTime = computed(() => {
if (currentTimeEntry.value.start && currentTimeEntry.value.start !== '') {
return currentTimeEntry.value.start;
}
return dayjs().utc().format();
});
</script>
<template>
@@ -142,7 +149,7 @@ async function updateTimeRange(newStart: string) {
<template #content>
<TimeRangeSelector
@changed="updateTimeRange"
:start="currentTimeEntry.start"
:start="startTime"
:end="null">
</TimeRangeSelector>
</template>