bug: ToastController displaying an orange border box
See original GitHub issueBug Report
Ionic version:
[x] 5.1.0
Current behavior:
An orange border box appears when I present a toast message. Disappears when I tap anywhere else but the toast and appears again when I tap it.
Expected behavior:
Not displaying anything like this when presenting a toast message or tap it.
Steps to reproduce:
The easiest way to reproduce is to copy the “presentToast()” function below and call it. When the toast appears you should see an orange border box around the app and when you tap anywhere else it should disappear. (Use a dark theme might help you notice it)
Related code:
import { Component } from '@angular/core';
import { ToastController } from '@ionic/angular';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
constructor(
private toastCtrl: ToastController
) {
this.presentToast('Hello World!');
}
async presentToast(msg: string, dur = 150000) {
const toast = await this.toastCtrl.create({
message: msg,
duration: dur
});
await toast.present();
}
}
Other information:
Ionic info:
Ionic:
Ionic CLI : 6.7.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.1.0
@angular-devkit/build-angular : 0.803.26
@angular-devkit/schematics : 8.3.26
@angular/cli : 8.3.26
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 2.0.1
@capacitor/core : 2.0.1
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v12.16.1 (/usr/local/bin/node)
npm : 6.13.4
OS : macOS Catalina
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
bug: ToastController displaying an orange border box · Issue ...
Current behavior: An orange border box appears when I present a toast message. Disappears when I tap anywhere else but the toast and...
Read more >ToastController - Ionic API Documentation
A Toast is a subtle notification commonly used in modern applications. It can be used to provide feedback about an operation or to...
Read more >Free Automated Malware Analysis Service - powered by Falcon ...
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to fight malware.
Read more >Angular Material - Quick Guide - Tutorialspoint
It also supports ngMessages for input validation. 5, Dialogs. The md-dialog, an Angular Directive, is a container element and is used to display...
Read more >Mobile App Development with Ionic and Angular - Skillshare
I'll show you how to install the tools that I use and get the basics up and running as ... The application of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, fixed it for all controllers.
This also affects LoadingController window. As a temporary workaround adding this to globals.scss seems to help: