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.

bug: ToastController displaying an orange border box

See original GitHub issue

Bug 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:

20200503_140039

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ErgerSushacommented, May 7, 2020

Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?

Ionic React npm i @ionic/react@5.2.0-dev.202005062021.179d971

Ionic Angular npm i @ionic/angular@5.2.0-dev.202005062021.179d971

Yep, fixed it for all controllers.

2reactions
ErgerSushacommented, May 4, 2020

This also affects LoadingController window. As a temporary workaround adding this to globals.scss seems to help:

ion-modal, ion-loading {
  outline: none;
}
Read more comments on GitHub >

github_iconTop 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 >

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