mirror of https://github.com/usememos/memos.git
chore: use input type `datetime-local` instead of `text` (#5174)
This commit is contained in:
parent
2d4361d5fe
commit
290cdf5d4f
|
|
@ -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…
Reference in New Issue