-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(datepicker): dispatch events when datepicker is opened and closed #7792
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
Conversation
src/lib/datepicker/datepicker.ts
Outdated
@@ -167,6 +167,12 @@ export class MatDatepicker<D> implements OnDestroy { | |||
*/ | |||
@Output() selectedChanged = new EventEmitter<D>(); | |||
|
|||
/** Emits when the datepicker has been opened. */ | |||
@Output('opened') openedStream: EventEmitter<void> = new EventEmitter<void>(); |
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.
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.
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, can we just change the closed
property to closedStream
then so that it matches openedStream
?
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.
Done.
1be91fa
to
fa52f9d
Compare
Hello this PR solve problem in my project. Thank you, look forward merge it. |
Adds the `opened` and `closed` events that are dispatched when a datepicker is opened/closed. Fixes angular#7626.
fa52f9d
to
f41745e
Compare
Is there any workaround now? We really need this but so far wasn't able to do it. I really appreciate any suggestion. |
Is there some time, this merge is going to be released? It's since 8 months blocked by CI travis fail. |
This was included in the |
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. |
Adds the
opened
andclosed
events that are dispatched when a datepicker is opened/closed.Fixes #7626.