ionic-team / ionic-team/ionic-framework

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

オープン
#31,433 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
triage
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
64/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。