Ionic-framework: bug: Ionic/React - I can only get one slice of Toast

Created on 1 Nov 2019  路  4Comments  路  Source: ionic-team/ionic-framework

Ionic version:
ionic/react 4.11.3

Current behavior:
Setting the isOpen attribute on an element to true shows the toast. But once it is dismissed, setting the attribute to true again does not cause the toast element to reappear.

Expected behavior:
The toast element should reappear when the isOpen attribute is set to true.

Steps to reproduce:
Deploy the React code example code on the Ionic Framework API page: https://ionicframework.com/docs/api/toast

Click the button 'Show Toast 1' or 'Show Toast 2'. Wait for the toast to dissappear or dismiss it. Click the same button again - the toast does not reappear.

Ionic info:

Ionic:

   Ionic CLI : 5.4.5

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.15.3
   npm    : 6.4.1
   OS     : Windows Server 2016
react

Most helpful comment

Thanks @elylucas. I had plenty of toast for breakfast today!

All 4 comments

I am also having nearly the same issue, except each subsequent time the toast is opened, it shows up for less and less time.

I have the duration set to 1500, yet the second time I open the toast it only stays open for a split second, not even long enough to read the message. After 3 or 4 times, it stops opening up completely.

fix released in 4.11.4

Thanks @elylucas. I had plenty of toast for breakfast today!

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