react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

React aria components DateField unexpected behavior when reentering years with trailing zeroes

Open ssijak opened this issue 7 months ago โ€ข 0 comments

Provide a general summary of the issue here

Not being able to reliably and predictably enter a year in the year date segment

๐Ÿค” Expected Behavior?

I should be able to enter any year at any point without deleting everything written in the year field.

๐Ÿ˜ฏ Current Behavior

I cant reenter years with trailing zeroes without first deleting all digits written in the year field.

๐Ÿ’ Possible Solution

No response

๐Ÿ”ฆ Context

No response

๐Ÿ–ฅ๏ธ Steps to Reproduce

Steps to reproduce:

  1. Enter a full 4 digit year in DateField
  2. Start reentering (type any digit higher than 0)
  3. start typing zeroes

Randomly it will stop entering new values at 1, 2, or 3 digit max for a year

You can reproduce the issue on any DateField example https://react-spectrum.adobe.com/react-aria/DateField.html

Here is a demo https://share.cleanshot.com/cT8SNXkD

Version

latest

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

mac

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

ssijak avatar Jun 09 '25 10:06 ssijak