storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
83.77k stars 9.18k forks source link

Controls addon date Control Type bug #15109

Open cerkwchia opened 3 years ago

cerkwchia commented 3 years ago

Describe the bug Controls addon - date Control Type select month and type 11 by using keyboard, it automatically updated month to 12. - this happened on March 31st and May 31st and It might happen again on July 31st, Aug 31st when the day is on 31st.

To Reproduce Create date Control Type on storybook value: { control: "date" }, change the system date to May 31st or March 31st and using keyboard to type on the month field part. month 11 will automatically change to 12.

System Storybook version: 6.1.14 storybook/react: v6.1.14 react version: 17.0.1 Platform: win32 x64

Additional context DatePickerControl

shilman commented 3 years ago

I'm not able to reproduce. Can you make a screen recording to demonstrate?

cerkwchia commented 3 years ago

dateControl

ndelangen commented 1 year ago

This seems like a really small contained bug, that maybe a first time contributor could find a fix for.

I suspect it might already be fixed in the next branch though. So if anyone would be able to see if they can reproduce this still on the next branch that'd be awesome.