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.

[4.0.0-rc.2] Clicking on toast buttons doesn't work

See original GitHub issue

Ionic version:

[x] 4.x

Current behavior: Toast buttons don’t trigger handlers in rc2.

Expected behavior: For the handlers to be fired when the buttons are clicked.

Steps to reproduce: Upgrade to rc2 and attempt to fire a method when clicking on toast buttons.

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.8.0 (/usr/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-rc.2
   @angular-devkit/build-angular : 0.12.1
   @angular-devkit/schematics    : 7.2.1
   @angular/cli                  : 7.2.1
   @ionic/angular-toolkit        : 1.2.2

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 13 other plugins)

System:

   Android SDK Tools : 26.1.1 (/path/Android/Sdk)
   NodeJS            : v8.15.0 (/usr/bin/node)
   npm               : 6.4.1
   OS                : Linux 4.18

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
brandyscarneycommented, Jan 17, 2019

Thanks for the issue! I was able to reproduce this. It seems to be related to ion-activatable as removing that makes it work again. We will look into this.

1reaction
manucorporatcommented, Jan 19, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

[4.0.0-rc.2] Clicking on toast buttons doesn't work #17136
Current behavior: Toast buttons don't trigger handlers in rc2. Expected behavior: For the handlers to be fired when the buttons are clicked.
Read more >
react-toastify - npm
Sometimes you don't want to display a close button. It can be removed globally or per toast. Pass false to closeButton props: remove...
Read more >
Bootstrap Toast won't show on button click - Stack Overflow
Using Bootstrap 5, I have the following Toast message placed at the end of my HTML file: <div class="toast-container position-absolute p-3 ...
Read more >
ion-toast Component: A Dismissible App Notification Alert
The following example demonstrates how to use the buttons property to add a button that automatically dismisses the toast when clicked, as well...
Read more >
Demos > Toast - Angular Material
Toast can be dismissed with a swipe, a timer, or a button. Notice the 'Show Custom' toast will not nudge the FABs positions...
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