-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
DatePicker日期选择框的nz-range-picker输入的开始时间大于结束时间时,界面input的框显示的是输入的值,而modle里面是之前选中的值 #3940
Comments
Translation of this issue:When the start time of the nz-range-picker input of the DatePicker date selection box is greater than the end time, the input box of the interface displays the input value, and the default value is the inside of the modle.Reproduction linkhttps://ng-zorro-antd-start.stackblitz.io Steps to reproduceManual entry start time is greater than the end time, the console outputs the modle value, you can see the problem What is expected?Provides an attribute that cannot be input, or judges that when the input start time is greater than the end time, the value in the input box is restored to the previously selected value. What is actually happening?When the interface enters the correct time format, but the start time is greater than the end time, the interface displays the value just entered, that is, the start time is greater than the end time, and the modle is the value just selected for the panel expansion, instead of the input. value
|
…end (NG-ZORRO#3956) * fix(module:date-picker): sort range picker value when start is after end * fix: test close NG-ZORRO#3940, close NG-ZORRO#1642
…end (NG-ZORRO#3956) * fix(module:date-picker): sort range picker value when start is after end * fix: test close NG-ZORRO#3940, close NG-ZORRO#1642
Reproduction link
https://ng-zorro-antd-start.stackblitz.io
Steps to reproduce
手动录入开始时间大于结束时间,控制台输出modle值,可以看到问题
What is expected?
提供不可输入的属性、或者判断当输入的开始时间大于结束时间时,输入框里面的值还原为之前选中的值
What is actually happening?
当界面输入正确的时间格式,但是开始时间大于结束时间的时候,界面显示的是刚输入的值,也就是开始时间大于了结束时间,而modle里面是刚刚展开面板选择的值,而不是输入的值
The text was updated successfully, but these errors were encountered: