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(datepicker): select correct month and year from month picker view… #4501

Merged
merged 7 commits into from
Dec 5, 2018
Merged

fix(datepicker): select correct month and year from month picker view… #4501

merged 7 commits into from
Dec 5, 2018

Conversation

johnsmathew
Copy link
Contributor

@johnsmathew johnsmathew commented Jul 14, 2018

… when displayMonths > 1

Fixes #4500

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@ghost ghost added the needs review label Jul 14, 2018
@codecov
Copy link

codecov bot commented Jul 14, 2018

Codecov Report

Merging #4501 into development will decrease coverage by 1.22%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #4501      +/-   ##
===============================================
- Coverage        75.66%   74.43%   -1.23%     
===============================================
  Files              237      273      +36     
  Lines             7336     8321     +985     
  Branches          1464     1582     +118     
===============================================
+ Hits              5551     6194     +643     
- Misses            1379     1694     +315     
- Partials           406      433      +27
Impacted Files Coverage Δ
src/datepicker/reducer/bs-datepicker.effects.ts 73.58% <100%> (ø)
src/chronos/i18n/pl.ts 72.22% <0%> (-2.78%) ⬇️
src/chronos/i18n/sk.ts 80.85% <0%> (-2.13%) ⬇️
src/chronos/i18n/cs.ts 84.74% <0%> (-1.7%) ⬇️
...c/datepicker/bs-daterangepicker-input.directive.ts 25.6% <0%> (ø)
src/datepicker/engine/flag-years-calendar.ts 15% <0%> (ø)
src/datepicker/reducer/bs-datepicker.reducer.ts 43.33% <0%> (ø)
src/datepicker/utils/matrix-utils.ts 100% <0%> (ø)
src/datepicker/engine/flag-months-calendar.ts 88.88% <0%> (ø)
... and 40 more

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 b2bd459...98c3554. Read the comment docs.

@valorkin
Copy link
Member

@johnsmathew hey, thans for PR! Could you please add a test case for this issue?

@ghost ghost added the needs review label Jul 18, 2018
@johnsmathew
Copy link
Contributor Author

@valorkin Added test case for this scenario. I couldn't find any spec files for datepicker. So created a new spec file.

@johnsmathew
Copy link
Contributor Author

@valorkin Can this be reviewed and merged please.

@valorkin valorkin added this to the 3.1.3 milestone Dec 3, 2018
@ghost ghost assigned Domainv Dec 4, 2018
@ludmilanesvitiy
Copy link
Contributor

Tested in Chrome, FF - latest, looks good. Need to update test for not disabling ts-lint rules and ready for merge.

@valorkin valorkin merged commit 3a17cc3 into valor-software:development Dec 5, 2018
@ghost ghost removed the ready for merge label Dec 5, 2018
@johnsmathew johnsmathew deleted the fix-month-selection branch January 8, 2019 08:57
leo6104 pushed a commit to leo6104/ngx-bootstrap that referenced this pull request Oct 10, 2019
valor-software#4501)

* fix(datepicker): select correct month and year from month picker view when displayMonths > 1

* test(datepicker): select correct year on month selection

* test(datepicker): add test for show and hide

* fix(tslint): fix tslint errors

* feat(common): clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants