From e4addb4cab347481d93cefbc267c8472dd632211 Mon Sep 17 00:00:00 2001 From: mehm8128 <83744975+mehm8128@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:26:35 +0900 Subject: [PATCH] doc: Fix date inputs on Chrome (#704) --- packages/docs/content/docs/parsers/demos.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/content/docs/parsers/demos.tsx b/packages/docs/content/docs/parsers/demos.tsx index 5e34a5e6..fab14bcd 100644 --- a/packages/docs/content/docs/parsers/demos.tsx +++ b/packages/docs/content/docs/parsers/demos.tsx @@ -264,7 +264,7 @@ export function DateParserDemo({ if (e.target.value === '') { setValue(null) } else { - setValue(e.target.valueAsDate) + setValue(new Date(e.target.value)) } }} />