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
feat(datepicker): change 'select' event to 'dateSelect' #3461
Conversation
7a749c0
to
97bb372
Compare
Codecov Report
@@ Coverage Diff @@
## master #3461 +/- ##
==========================================
+ Coverage 91.59% 91.59% +<.01%
==========================================
Files 100 100
Lines 2867 2868 +1
Branches 527 527
==========================================
+ Hits 2626 2627 +1
Misses 183 183
Partials 58 58
Continue to review full report at Codecov.
|
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.
Hey, @peterblazejewicz!
Thanks for the PR, just left one comment.
src/datepicker/datepicker-service.ts
Outdated
get dateSelect$(): Observable<NgbDate> { return this._dateSelect$.pipe(filter(date => date !== null)); } | ||
|
||
/** @deprecated please use `dateSelect$` */ | ||
get select$(): Observable<NgbDate> { return this.dateSelect$; } |
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.
This should be removed, not deprecated because NgbDatepickerService
is the internal implementation. I'd say either:
- don't rename
_select$
andget select()
at all, because it's internal (I think I prefer this personally) - or remove this deprecation completely, because it should not be used anywhere anyway
This commit changes name of the component custom event to avoid conflicts with native 'select' event. Existing event name will be marked as deprecated in v6. Fixes ng-bootstrap#3444
This commit changes name of the component custom event to avoid
conflicts with native 'select' event.
Existing event name is marked as deprecated for backward compatibility.
Fixes #3444
Thanks!