-
-
Notifications
You must be signed in to change notification settings - Fork 49k
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
Cannot change date inside Form Component:DatePicker #9442
Comments
@yesmeck For some reason it's working in the example, but when I created it had same error I have. I can select a Date, but I cannot change month or year. It's a problem that occurs in the whole platform when the DatePicker is inside a Form.Item. |
Reinstall node_moduels, if the problem still exists, provide a reproduction repo. |
This issue is closed because it has been marked as |
@yesmeck I've been testing DatePicker in different versions of ant design, and I found my problem occurs if I use antd version higher than 3.1.5. If I use antd version 3.1.4 it works correctly. Maybe it's related with a change you've done on #8885 on version 3.1.5 or this one for RangePicker #8970 on version 3.1.5 too. I'm using react-intl for translation, and my package.json is:
Cheers, |
Please, help us reproduce it. |
I'm having the same issue and but only in a very specific case: when the I found that the solution was to stop the click event propagation to the Here's a repro example with a few simple cases showing the month/year arrows either not working or working depending on a) if the What's bizarre is that in my actual app, the DatePicker is in a |
@erhsparks We use |
makes sense, thanks! |
I use antd 2.13.11 ,RanderPicker also cannot change month or year. When I use it with Form, or set Value to it. Please help me |
Version
3.2.1
Environment
Google Chrome Version 64.0.3282.186 (64 bit),
Mac OS High Sierra Version 10.13.3,
React Version 16.2.0
Reproduction link
https://codesandbox.io/s/43zrxlz45w
Steps to reproduce
Add a DatePicker as a Form.Item inside a Form. When you try to select a year, a Month o a Date, it doesn't change anything, neither throw any error.
What is expected?
To change date from DatePicker inside a Form.
What is actually happening?
Nothing change after selecting month, year or date.
The text was updated successfully, but these errors were encountered: