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.

[VUE] bug: ion-loader update textContent causes background to disappear

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

When textContent is updated, the white background box disappear

Expected Behavior

One should be able to change the loading text without issues

Steps to Reproduce

const loading = await loadingController.create({
        message: "Loading...",
      });
      await loading.present();
setTimeout(() => {
loading.textContent = "new content";
}, 1000);

Code Reproduction URL

https://github.com/Suxsem/ionic-loading-bug

Ionic Info

Ionic:

Ionic CLI : 6.20.1 (C:\Users\semer\AppData\Roaming\npm\node_modules@ionic\cli) Ionic Framework : @ionic/vue 6.1.13

Capacitor:

Capacitor CLI : 3.6.0 @capacitor/android : 3.6.0 @capacitor/core : 3.6.0 @capacitor/ios : 3.6.0

Utility:

cordova-res : 0.15.4 native-run : 1.6.0

System:

NodeJS : v14.18.1 (C:\Program Files\nodejs\node.exe) npm : 6.14.15 OS : Windows 10

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Suxsemcommented, Jul 14, 2022

Ok the workaround works, thank you. For reference, replace loading.textContent = `Loading... ${percent}%`; with loading.querySelector(".loading-content")!.textContent = `Loading... ${percent}%`;

Hope you can make the component reactive in the future!

0reactions
ionitron-bot[bot]commented, Aug 13, 2022

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

sitemap-questions-127.xml - Stack Overflow
... https://stackoverflow.com/questions/1126237/possible-bug-with-uitableview- ... /onclick-event-change-background-image-with-fade-transition 2019-12-07 ...
Read more >
Untitled
Canciani paolo, Pull it back, Rc shop online germany, Jimei university hotel, Rescaldani velez wikipedia, Bvb fanlieder mp3, Zipsor medication side effects, ...
Read more >
content-type application html Code Example
This is usually caused by a missing library or dependency. ... If you are using vue-loader@>=10.0, simply update vue-template-compiler.
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