Skip to content

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

Description

@bohndickii

Prerequisites

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

<ion-label [innerHTML]="labelText">

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions