When editing a memo, use input type datetime-local instead of text to allow the use of calendar to change date. Potentially this would allow to get ride of format check

This commit is contained in:
Simon 2025-10-20 22:10:21 +01:00
parent b19e736f10
commit 8d4553faf9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ interface Props {
const DateTimeInput: React.FC<Props> = ({ value, onChange }) => { const DateTimeInput: React.FC<Props> = ({ value, onChange }) => {
return ( return (
<input <input
type="text" type="datetime-local"
className={cn("px-1 bg-transparent rounded text-xs transition-all", "border-transparent outline-none focus:border-border", "border")} className={cn("px-1 bg-transparent rounded text-xs transition-all", "border-transparent outline-none focus:border-border", "border")}
defaultValue={formatDate(value)} defaultValue={formatDate(value)}
onBlur={(e) => { onBlur={(e) => {