Skip to content

Commit c099c93

Browse files
amansultaniasbiin
andauthored
feat(calls): allow DatePicker to display only past and today's dates (#7100)
Co-authored-by: Alexis Saettler <[email protected]>
1 parent 1422407 commit c099c93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/js/Shared/Modules/Calls.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ const destroy = (call) => {
195195
class="inline-block h-full"
196196
:masks="masks"
197197
:locale="$page.props.auth.user?.locale_ietf"
198-
:is-dark="isDark()">
198+
:is-dark="isDark()"
199+
:max-date="new Date()">
199200
<template #default="{ inputValue, inputEvents }">
200201
<input
201202
class="rounded border bg-white px-2 py-1 dark:bg-gray-900"
@@ -472,7 +473,8 @@ const destroy = (call) => {
472473
v-model.string="form.called_at"
473474
class="inline-block h-full"
474475
:masks="masks"
475-
:is-dark="isDark()">
476+
:is-dark="isDark()"
477+
:max-date="new Date()">
476478
<template #default="{ inputValue, inputEvents }">
477479
<input
478480
class="rounded border bg-white px-2 py-1 dark:bg-gray-900"

0 commit comments

Comments
 (0)