react-component / picker

📅 All Date Pickers you need.

Home Page:https://picker.react-component.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entering date manually in custom date-fns date picker with format

jvnm-dev opened this issue · comments

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Open minimal reproducible example
  • Enter date manually character by character i.e. "04/17/2024"
  • When entering the first 2 of 2024 the bug occurs

What is expected?

The date should be 04/17/2024

What is actually happening?

The date is 04/17/0002. If I continue to type 2024 it becomes 0002024.

Environment Info
antd 5.16.2
React 18.2.0
System macOS Sonoma 14.2
Browser Arc 1.38.0