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

fix(module:date-picker): keep the time value while clicking date #3911

Merged
merged 2 commits into from
Aug 8, 2019

Conversation

wenqi73
Copy link
Member

@wenqi73 wenqi73 commented Aug 2, 2019

close #2576, close #1949

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Aug 2, 2019

Deploy preview for ng-zorro-master ready!

Built with commit da5e3fd

https://deploy-preview-3911--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Aug 2, 2019

Codecov Report

Merging #3911 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3911      +/-   ##
==========================================
+ Coverage   95.24%   95.24%   +<.01%     
==========================================
  Files         726      726              
  Lines       14672    14672              
  Branches     1910     1909       -1     
==========================================
+ Hits        13974    13975       +1     
  Misses        260      260              
+ Partials      438      437       -1
Impacted Files Coverage Δ
components/calendar/date-table.component.ts 94.49% <100%> (+0.91%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31dbe1a...da5e3fd. Read the comment docs.

.setMonth(value.getMonth())
.setDate(value.getDate());

if (this.value !== newValue) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CandyDatesetxxx 方法返回的都是新的实例,判断总会是 false

Copy link
Member

@vthinkxie vthinkxie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wzhudev
Copy link
Member

wzhudev commented Aug 7, 2019

This should be a fix.

@wenqi73 wenqi73 changed the title chore(module:date-picker): keep the time value while clicking date fix(module:date-picker): keep the time value while clicking date Aug 7, 2019
@wenqi73 wenqi73 merged commit 9499aec into NG-ZORRO:master Aug 8, 2019
@wenqi73 wenqi73 deleted the fix-datepicker-time branch October 25, 2019 03:00
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this pull request Apr 9, 2020
…ZORRO#3911)

* chore(module:date-picker): keep the time value while clicking date

* chore: delete jugdement
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
…ZORRO#3911)

* chore(module:date-picker): keep the time value while clicking date

* chore: delete jugdement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants