mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
bugfix
This commit is contained in:
parent
0b6b5c4869
commit
c1368e6dc7
@ -19,7 +19,7 @@
|
||||
required
|
||||
:no-flip="true"
|
||||
type="date"
|
||||
@update:model-value="date = $event"
|
||||
@update:model-value="handleDateChange"
|
||||
>
|
||||
<template #nav-prev-year><span></span></template>
|
||||
<template #nav-next-year><span></span></template>
|
||||
@ -128,6 +128,11 @@ const [date, dateProps] = defineField('date')
|
||||
|
||||
const { meta: dataFieldMeta } = useField('date', 'required')
|
||||
|
||||
const handleDateChange = (newDate) => {
|
||||
date.value = newDate
|
||||
emit('update:model-value', { ...props.modelValue, date: newDate })
|
||||
}
|
||||
|
||||
const showMessage = computed(() => {
|
||||
if (props.maxGddThisMonth <= 0 && props.maxGddLastMonth <= 0) return true
|
||||
if (props.modelValue.date)
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<div class="mb-3"></div>
|
||||
<contribution-form
|
||||
:key="computedKeyFromForm"
|
||||
:model-value="form"
|
||||
v-model="form"
|
||||
:is-this-month="isThisMonth"
|
||||
:minimal-date="minimalDate"
|
||||
:max-gdd-last-month="maxForMonths[0]"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user