-
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
fix(module:date-picker): optimized interaction by using input box #4146
Conversation
Deploy preview for ng-zorro-master ready! Built with commit e30fee3 |
Codecov Report
@@ Coverage Diff @@
## master #4146 +/- ##
==========================================
+ Coverage 92.27% 92.29% +0.01%
==========================================
Files 517 518 +1
Lines 10961 10960 -1
Branches 1985 1983 -2
==========================================
+ Hits 10114 10115 +1
+ Misses 422 420 -2
Partials 425 425
Continue to review full report at Codecov.
|
d9a7e05
to
fca2ca0
Compare
components/date-picker/lib/popups/date-range-popup.component.ts
Outdated
Show resolved
Hide resolved
this.value = null; // Clear current value to not sync time by next step | ||
this.changeValue(value); | ||
// tslint:disable-next-line: no-any | ||
this.value = null as any; // Clear current value to not sync time by next step |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value: CompatibleValue | null
如果可以为 null
最好加上类型。
“直接点击遮罩关闭不会保存 input值”这个体验还是有点不好啊。 |
@lhysrc 感谢反馈,我们会考虑加上。 |
…-ZORRO#4146) * fix(module:date-picker): input value change should trigger panel change * chore: update * fix: test * fix: enter on nzShowTime * chore: delete comment * fix: resultOk can set value from input * fix: wrong generic * fix: resolve review comment
…-ZORRO#4146) * fix(module:date-picker): input value change should trigger panel change * chore: update * fix: test * fix: enter on nzShowTime * chore: delete comment * fix: resultOk can set value from input * fix: wrong generic * fix: resolve review comment
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #4130
What is the new behavior?
Does this PR introduce a breaking change?
Other information
优化 date picker 与 range picker 的 input 交互