-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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): make datepicker work in compatibility mode #4686
Conversation
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.
LGTM
src/lib/datepicker/calendar.html
Outdated
@@ -1,16 +1,38 @@ | |||
<div class="mat-calendar-header"> | |||
<div class="mat-calendar-controls"> | |||
<button md-button class="mat-calendar-period-button" (click)="_currentPeriodClicked()" | |||
[attr.aria-label]="_periodButtonLabel"> | |||
|
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.
Add a TODO like
<!-- TODO: stop doing this horrible hack for compatibility mode -->
?
@@ -111,6 +112,7 @@ export class MdCalendar<D> implements AfterContentInit { | |||
constructor(private _elementRef: ElementRef, | |||
private _intl: MdDatepickerIntl, | |||
private _ngZone: NgZone, | |||
@Optional() @Inject(MATERIAL_COMPATIBILITY_MODE) public _isCompatibilityMode: boolean, |
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.
private?
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.
can't be private since it's used in the template, underscore indicates that its for internal use only
Right! Sorry!
…On Tue., 23 May 2017, 02:10 mmalerba, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/lib/datepicker/calendar.ts
<#4686 (comment)>:
> @@ -111,6 +112,7 @@ export class MdCalendar<D> implements AfterContentInit {
constructor(private _elementRef: ElementRef,
private _intl: MdDatepickerIntl,
private _ngZone: NgZone,
+ @optional() @Inject(MATERIAL_COMPATIBILITY_MODE) public _isCompatibilityMode: boolean,
can't be private since it's used in the template, underscore indicates
that its for internal use only
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4686 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABRKNL-PjzBTMZ2I1nMFyfPMOj8f14yTks5r8bN0gaJpZM4Ng-tl>
.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fixes #4619