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

pull/5174/head
Simon 2 weeks ago
parent b19e736f10
commit 8d4553faf9

@ -18,7 +18,7 @@ interface Props {
const DateTimeInput: React.FC<Props> = ({ value, onChange }) => {
return (
<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")}
defaultValue={formatDate(value)}
onBlur={(e) => {

Loading…
Cancel
Save