-
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
feat(datepicker): remove dependency on mat-dialog #13019
Conversation
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
1 similar comment
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
b53813c
to
8c915e9
Compare
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.
Looks good, we'll have to see how the presubmit goes though. I don't know whether people are relying on this being an actual dialog in tests
src/lib/datepicker/datepicker.ts
Outdated
|
||
if (!this.touchUi) { | ||
// Update the position once the calendar has rendered. | ||
this._ngZone.onStable.asObservable() |
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.
I think we can leave off the .asObservable()
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.
I've been doing this since, at some point in the past, omitting it ended up causing a memory leak. I'm not sure whether that hasn't been fixed in core by now though.
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.
Ah ok, didn't realize that
8c915e9
to
3164d94
Compare
3164d94
to
43a29b5
Compare
43a29b5
to
79fdefe
Compare
What is status of this? Do you plan to merge this? We would like to use touchUi but we have a few issues related to dialog and #7390. (mostly on ios safari) |
Reworks the datepicker to remove its dependency to `material/dialog`, avoiding bringing in all of the overhead of the dialog from which the datepicker is using a small fraction.
79fdefe
to
abd743a
Compare
Currently the datepicker has a hard dependency on `MatDialog` due to its touch-specific appearance which makes it difficult to use together with the MDC packages, because they have an alternate dialog module. These changes resolve the issue by removing the datepicker's dependency on `MatDialog`. The approach is loosely based on angular#13019, however I've simplified things a bit to make it more maintainable.
Closing in favor of #22383. |
Currently the datepicker has a hard dependency on `MatDialog` due to its touch-specific appearance which makes it difficult to use together with the MDC packages, because they have an alternate dialog module. These changes resolve the issue by removing the datepicker's dependency on `MatDialog`. The approach is loosely based on angular#13019, however I've simplified things a bit to make it more maintainable.
Currently the datepicker has a hard dependency on `MatDialog` due to its touch-specific appearance which makes it difficult to use together with the MDC packages, because they have an alternate dialog module. These changes resolve the issue by removing the datepicker's dependency on `MatDialog`. The approach is loosely based on angular#13019, however I've simplified things a bit to make it more maintainable.
Currently the datepicker has a hard dependency on `MatDialog` due to its touch-specific appearance which makes it difficult to use together with the MDC packages, because they have an alternate dialog module. These changes resolve the issue by removing the datepicker's dependency on `MatDialog`. The approach is loosely based on #13019, however I've simplified things a bit to make it more maintainable.
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. |
Reworks the datepicker to remove its dependency to
material/dialog
, avoiding bringing in all of the overhead of the dialog from which the datepicker is using a small fraction.