Skip to content

Commit

Permalink
Add max value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Nov 9, 2023
1 parent 3e8a913 commit bfe07fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Components/Assets/AssetServiceEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export const AssetServiceEditModal = (props: {
className="mt-2"
position="LEFT"
value={new Date(form.serviced_on)}
max={new Date(props.service_record.created_date)}
onChange={(date) => {
if (
dayjs(date.value).format("YYYY-MM-DD") >
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Common/DateInputV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ const DateInputV2: React.FC<Props> = ({
}
} else {
conditionalClasses =
"!cursor-not-allowed bg-gray-200 !text-gray-400";
"!cursor-not-allowed !text-gray-400";
}
return (
<div
Expand Down

0 comments on commit bfe07fe

Please sign in to comment.