-
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(snackbar): add onAction to snackbar ref #1826
Conversation
@@ -38,8 +43,21 @@ export class MdSnackBarRef<T> { | |||
} | |||
} | |||
|
|||
/** Marks the snackbar action clicked. */ | |||
action(): 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.
Can we mark this as internal (just an underscore prefix without private
or @internal
)? I don't think users should be calling it on their own.
actionObservableCompleted = true; | ||
}); | ||
|
||
snackBarRef.action(); |
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.
Instead of calling this directly, could you grab the action button element and call .click()
on it?
a8d6c09
to
78f970a
Compare
78f970a
to
8728edc
Compare
LGTM |
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. |
For #1616