chore: use input type datetime-local instead of text (#5174)
This commit is contained in:
parent
2d4361d5fe
commit
290cdf5d4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue