Skip to content

Commit 9e02c13

Browse files
author
bahman
committed
fix(deck): add min and max date limits to DueDateSelector
- Set maximum date to December 31, 9999 Signed-off-by: bahman <bja@adlas.at>
1 parent 7986cfb commit 9e02c13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/card/DueDateSelector.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
v-model="duedate"
1313
:placeholder="t('deck', 'Set a due date')"
1414
:hide-label="true"
15-
type="datetime-local" />
15+
type="datetime-local"
16+
:max="new Date('9999-12-31T23:59:59')"/>
1617
<NcActions v-if="canEdit"
1718
:menu-title="!duedate ? t('deck', 'Add due date') : null"
1819
type="tertiary"

0 commit comments

Comments
 (0)