A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix `DateInput` and `DateTimeInput` on mobile Safari
Jean-Baptiste Kaiser8276a6bdf0e8
diff --git a/src/components/admin/date-input.tsx b/src/components/admin/date-input.tsxindex 48d4c880..f65138da 100644--- a/src/components/admin/date-input.tsx+++ b/src/components/admin/date-input.tsx@@ -229,7 +229,7 @@ export const DateInput = (props: DateInputProps) => {className={cn("ra-input",`ra-input-${source}`,- "[color-scheme:light] dark:[color-scheme:dark] relative [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:right-3 [&::-webkit-calendar-picker-indicator]:opacity-100",+ "scheme-light dark:scheme-dark relative [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:right-3 [&::-webkit-calendar-picker-indicator]:opacity-100 dark:bg-gray appearance-none",inputClassName,)}disabled={disabled || readOnly}diff --git a/src/components/admin/date-time-input.tsx b/src/components/admin/date-time-input.tsxindex 590b7ba5..10a2c45d 100644--- a/src/components/admin/date-time-input.tsx+++ b/src/components/admin/date-time-input.tsx@@ -189,7 +189,7 @@ export const DateTimeInput = ({className={clsx("ra-input",`ra-input-${source}`,- "[color-scheme:light] dark:[color-scheme:dark] relative [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:right-3 [&::-webkit-calendar-picker-indicator]:opacity-100",+ "scheme-light dark:scheme-dark relative [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:right-3 [&::-webkit-calendar-picker-indicator]:opacity-100 appearance-none",className,)}disabled={disabled || readOnly}