Ionic-framework: ToastCtrll will not disappear in ionic-angular3.5.0。

Created on 6 Jul 2017  Â·  6Comments  Â·  Source: ionic-team/ionic-framework

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x ] 3.x

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
global packages:

@ionic/cli-utils : 1.4.0
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework                 : ionic-angular 3.5.0

System:

Node       : v8.1.3
OS         : Windows 8.1
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.3
insert the output from ionic info here

When I update ionic-angular to latest 3.5.0 from 3.4.0,the toast will not disappear when create a new toast if the previous toast has not disappear. Then the toast will break down. New toast will not appear and old toast will not disappear.
ionic-angular3.5.0 :
3 5

ionic-angular3.4:
3 4

Most helpful comment

Hello all! After debugging this i can report that this has actually already been fixed and is in the latest nightly release of ionic-angular. To install nightly you can run npm install ionic-angular@nightly --save. This fix will be in the next release. Thanks for using Ionic!

All 6 comments

Same issue in my application due to the v3.5.0 migration.

presentToast() {
  let toast = this.toastCtrl.create({
    message: 'User was added successfully',
    duration: 3000,
    position: 'top'
  });

   toast.present();
}

If the previous toast is not remove, and some new ones are created new they will never disappear even if we use the option showCloseButton.

The same issue can be seen in the ionic conference app. When you pull down the schedule to refresh, a toast is shown. If you pull down again before the toast is dismissed then it will never disappear.

Thanks for opening an issue with us. We will look into this.

Hello all! After debugging this i can report that this has actually already been fixed and is in the latest nightly release of ionic-angular. To install nightly you can run npm install ionic-angular@nightly --save. This fix will be in the next release. Thanks for using Ionic!

@jgw96 I have tested this nightly + stable build. I can still reproduce this on "ionic-angular": "^3.5.3-201707261447" and latest the greatest "ionic-angular": "^3.6.0"

Edit:-

Fresh install of node modules worked! Sorry for the redundancy.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SebastianGiro picture SebastianGiro  Â·  3Comments

danbucholtz picture danbucholtz  Â·  3Comments

brandyscarney picture brandyscarney  Â·  3Comments

daveshirman picture daveshirman  Â·  3Comments

fdnhkj picture fdnhkj  Â·  3Comments