question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toast not showing over an active modal

See original GitHub issue

Bug Report

Ionic Info Run ionic info from a terminal/cmd prompt and paste the output below.

$ ionic info
√ Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)          : 4.1.2 (C:\Users\Toch\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.7
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.8
   @ionic/schematics-angular  : 1.0.6

Cordova:

   cordova (Cordova CLI) : not installed
   Cordova Platforms     : not available
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 10 other plugins)

System:

   NodeJS : v8.11.1 (C:\Program Files\nodejs\node.exe)
   npm    : 6.0.0
   OS     : Windows 10

Describe the Bug When using the toast controller in a modal, the toast does not show as you would expect, instead, it shows on the page behind it.

Steps to Reproduce Steps to reproduce the behavior:

  1. create a modal
  2. open modal
  3. create a toast
  4. See error

Related Code If you are able to illustrate the bug with an example, please provide a sample application via an online code collaborator such as StackBlitz, or GitHub.

Expected Behavior The toast is supposed to be visible on the modal page

Additional Context I created a feedback which abstracts the toastcontroller api and a few others into a simpler api

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
manucorporatcommented, Sep 25, 2018

@Tochukwuibe no, just update the package.json to beta.11 and run npm install

0reactions
ionitron-bot[bot]commented, Oct 26, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toast not showing over an active modal · Issue #15753 - GitHub
Run ionic info from a terminal/cmd prompt and paste the output below. ... When using the toast controller in a modal, the toast...
Read more >
Bootstrap Toast not showing when Bootstrap Modal is closed
From bootstrap docs. "Toasts are opt-in for performance reasons, so you must initialize them yourself." Checkout their docs
Read more >
Toasts · Bootstrap v5.0
Push notifications to your visitors with a toast, a lightweight and easily customizable alert message. ... Toasts are lightweight notifications designed to mimic ......
Read more >
How To Create a Snackbar / Toast - W3Schools
Click on the button to show the snackbar. It will disappear after 3 seconds. Show Snackbar. Some text some message.. Create a Snackbar....
Read more >
ion-modal: Ionic Mobile App Custom Modal API Component
It does not control whether or not the backdrop is active or present in the DOM. Attribute, show-backdrop. Type, boolean. Default, true. swipeToClose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found