diff --git a/src/Components/Assets/AssetServiceEditModal.tsx b/src/Components/Assets/AssetServiceEditModal.tsx index 3964dfe0770..13a91e36477 100644 --- a/src/Components/Assets/AssetServiceEditModal.tsx +++ b/src/Components/Assets/AssetServiceEditModal.tsx @@ -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") > diff --git a/src/Components/Common/DateInputV2.tsx b/src/Components/Common/DateInputV2.tsx index be9451da608..da974fbe0e9 100644 --- a/src/Components/Common/DateInputV2.tsx +++ b/src/Components/Common/DateInputV2.tsx @@ -357,7 +357,7 @@ const DateInputV2: React.FC = ({ } } else { conditionalClasses = - "!cursor-not-allowed bg-gray-200 !text-gray-400"; + "!cursor-not-allowed !text-gray-400"; } return (