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

Day and month are inverted in DatePicker #1641

Closed
viniciuscluna opened this issue May 7, 2021 · 2 comments
Closed

Day and month are inverted in DatePicker #1641

viniciuscluna opened this issue May 7, 2021 · 2 comments

Comments

@viniciuscluna
Copy link

What version of rsuite are you using?

5.0.0-alpha.5

What version of React are you using?

17.0.2

What browser are you using?

Chrome, Edge, Firefox

Describe the Bug

In the Datepicker component I passed the property "format = 'dd / MM / yyyy'", the format came right, but when I finished typing, the day and month are inverted.
I type '01 / 05/2021 ',
The component returns
'05 / 01/2021 '

Expected Behavior

I type '01/ 05/2021 ',
The component returns
'01/ 05/2021 '

To Reproduce

Bellow you can test:
https://codesandbox.io/s/determined-framework-4pco9

@simonguo
Copy link
Member

simonguo commented May 8, 2021

Upgrade rsuite to the latest version 5.0.0-alpha.6, this problem has been resolved.

npm i rsuite@next

@viniciuscluna
Copy link
Author

It worked!
Thank @simonguo for the quick response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants