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.

[v4, core] alert message displays a "square" at the end of the message

See original GitHub issue

Bug Report

Ionic Info

Ionic Core v4.0.0-beta.16

Describe the Bug I use an Alert from Ionic Core in a vanilla project and when the alert is displayed, it displays a “square” at the end of the message (see screenshot)

Steps to Reproduce Steps to reproduce the behavior:

  1. https://deckdeckgo.com
  2. click the “question mark” button in the bottom right fab list of actions

or

  1. git clone http://github.com/fluster/deckdeckgo-website
  2. cd deckdeckgo-website
  3. npm install
  4. npm start
  5. open localhost:3000
  6. click the “question mark” button in the bottom right fab list of actions

Related Code

presentAlert = async () => {
    const alertController = document.querySelector('ion-alert-controller');

    if (!alertController) {
        return;
    }

    await alertController.componentOnReady();

    const alert = await alertController.create({
        header: 'Hey!',
        subHeader: 'Nice to meet you',
        message: 'To navigate, just swipe the slides, use the left and right arrows keys of your keyboard or use the actions available at the bottom right.️',
        buttons: ['OK']
    });

    return await alert.present();
};

Expected Behavior No square displayed

Screenshot capture d ecran 2018-12-06 a 08 54 24

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
brandyscarneycommented, Dec 6, 2018

@peterpeterparker It’s okay! I didn’t see the square when I opened your demo but I noticed it in the HTML so I knew it was something weird going on. It happens. 🙂

0reactions
ionitron-bot[bot]commented, Jan 5, 2019

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

how to display alert message in controller - Stack Overflow
I used this approach in my last project in order to make the information returned from the server unobtrusive. Checking whether ViewData["Success"] or...
Read more >
JavaScript Message Boxes: alert(), confirm(), prompt()
alert () The alert() function displays a message to the user to display some information to users. This alert box will have the...
Read more >
Notification Center | Square Support Center - US
We've built a new Notification Center that centralizes all your notifications across the Square Point Of Sale app and the Square Appointments app....
Read more >
Functions - The Modern JavaScript Tutorial
The call showMessage() executes the code of the function. Here we will see the message two times. This example clearly demonstrates one of...
Read more >
On-Screen Alerts—Site Manager
You create On-Screen Alert messages using the Tools tab on the District Site Workspace in Site ... 4. Click Create Alert. The New...
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