-
Notifications
You must be signed in to change notification settings - Fork 4k
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
日期选择框最上方的input框修改日期无效 #4101
Comments
Translation of this issue:The input box at the top of the date selection box is invalid.Reproduction linkhttps://ng-zorro-antd-start.stackblitz.io Steps to reproduceClick the date selection box, then manually modify the date in the above input, click to confirm the time unchanged What is expected?Time becomes the latest revision time What is actually happening?Time is still the time of your choice, not the time after the modification.
|
也是建议DatePicker能支持手动输入并自动定位,不需要回车都能定位上去。现在其实我们自己写的业务组件都实现了此交互,希望ng-zorro也跟上吧。 |
It seems causing by custom formats, and checkValidInputDate in CalendarInputComponent returns NULL instead. The dd/MM/yyyy (en-NZ) formatted date will be wrongly converted as MM/dd/yyyy (en-US, or en default?). |
@renzhuoyan0 你好,链接失效,请重新发一个。 |
* feat(module:date-picker): support parse input value * test: fix tests * chore: support datefnsCompat option * fix: not import from i18n in core * chore: change API name and add docs * chore: change format convert from config to token * docs: update docs * chore: move some types * docs: update docs for date-fns update * chore: change name and add warning * docs: update docs Close #4028 Close #3976 Close #2492 Close #4101
* feat(module:date-picker): support parse input value * test: fix tests * chore: support datefnsCompat option * fix: not import from i18n in core * chore: change API name and add docs * chore: change format convert from config to token * docs: update docs * chore: move some types * docs: update docs for date-fns update * chore: change name and add warning * docs: update docs Close NG-ZORRO#4028 Close NG-ZORRO#3976 Close NG-ZORRO#2492 Close NG-ZORRO#4101
* feat(module:date-picker): support parse input value * test: fix tests * chore: support datefnsCompat option * fix: not import from i18n in core * chore: change API name and add docs * chore: change format convert from config to token * docs: update docs * chore: move some types * docs: update docs for date-fns update * chore: change name and add warning * docs: update docs Close NG-ZORRO#4028 Close NG-ZORRO#3976 Close NG-ZORRO#2492 Close NG-ZORRO#4101
Reproduction link
https://ng-zorro-antd-start.stackblitz.io
Steps to reproduce
点击日期选择框,然后手动修改上方input里面的日期,点击确认时间不变
What is expected?
时间变成最新修改的时间
What is actually happening?
时间还是自己选中的时间,不是修改以后的时间
The text was updated successfully, but these errors were encountered: