Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon Controls Date Picker Fails If Currrent Day Is Not Available In Month #13771

Closed
kev-hoang opened this issue Jan 29, 2021 · 4 comments
Closed

Comments

@kev-hoang
Copy link

Describe the bug
If the current day of the month the user is in is not available in the target month in the controls date picker, then it would not allow you to select the month. I noticed that the date picker was working fine yesterday (1/28) when I need to select 2/5 for the view and then today (1/29) when I try to select 2/5 it would automatically switch to 3/5.

To Reproduce
Steps to reproduce the behavior:

  1. Add date picker control
  2. Go to ui with date picker
  3. Select a month where the current day of the month is not available. So if day of month is 30, try to select a date in February. If day of month is 31, try to select any month that only has 30 days.
  4. It will automatically change the month to the next month. i.e. February -> March

Expected behavior
To be able to select the date you want regardless of the day of the month you are using Storybook.

Screenshots
If applicable, add screenshots to help explain your problem.

When changing the month from January to February, input is already on March 28th,
Screen Shot 2021-01-29 at 2 29 12 PM

After trying to select February 11th and seeing March 11th. I clicked into the calendar again and went to February 11th.
Screen Shot 2021-01-29 at 2 29 32 PM

Now that the input has changed, I thought it would work, but the args.date that is received is still March 11th.
Screen Shot 2021-01-29 at 2 29 49 PM

@rajanlagah
Copy link

Can we reproduce this on any date or we have to wait for almost 2 months ?

@kev-hoang
Copy link
Author

You'd have to wait until the next 30th day of the calendar month at least, unless you can spoof your browser date.

@pahan35
Copy link

pahan35 commented Nov 30, 2021

Is this issue fixed by #14348 ?

@shilman
Copy link
Member

shilman commented Nov 30, 2021

@pahan35 looks like it! closing this for now -- please let me know if it's still broken in 6.3 or higher

@shilman shilman closed this as completed Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants