ionic-team / ionic-team/ionic-framework

bug: ion-label does not render when binding innerHTML directly

Offen
#31,433 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
triage
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v9.x, v8.x

### Current Behavior

When binding innerHTML directly to ion-label it does not get rendered.

### Expected Behavior

When binding innerHTML directly to ion-label it should be rendered.

### Steps to Reproduce

### Code Reproduction URL

https://stackblitz.com/edit/mchyfkqo?file=src%2Fapp%2Fexample.component.ts,src%2Fapp%2Fexample.component.html

### Ionic Info

However, wrapping the same content inside a native element works correctly:



### Additional Information

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by running the StackBlitz reproduction and inspect src/app/example.component.ts and src/app/example.component.html, comparing direct [innerHTML] binding on ion-label with the nested span case. Done means the bound HTML renders when applied directly to ion-label without breaking the working wrapped example.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
64/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.