Skip to content
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(toast): close toasts when two or more are open #6814

Merged
merged 4 commits into from
Jun 9, 2016

Conversation

jgw96
Copy link
Contributor

@jgw96 jgw96 commented Jun 8, 2016

Short description of what this resolves:

If you open two or more toasts at a time, that have a duration, they will now all close when their duration runs out instead of being stuck open.

Changes proposed in this pull request:

  • Remove code from ionViewDidEnter and put inside ngAfterViewInit

Ionic Version: 2.x

Fixes: #6657

@@ -188,7 +188,7 @@ class ToastCmp {
}
}

ionViewDidEnter() {
ngAfterViewInit() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting the focus in AfterViewInit may be too soon before the element can receive focus in the DOM.

@danbucholtz danbucholtz merged commit 8ff2476 into ionic-team:2.0 Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants