Skip to content

Link in Label with TextType HTML is not clickable #21328

@EduardBeke

Description

@EduardBeke

Description

Issue:
In MAUI, there is an issue where links within a Label are not clickable when using TextType="Html".

Expected Behavior:
When using TextType="Html", links within the Label should be clickable, allowing users to navigate to the linked resource.

Actual Behavior:
The link within the Label remains unclickable, preventing users from interacting with it.

Impact:
This issue affects user experience and functionality, especially in scenarios where clickable links are essential for navigation or accessing external resources.

Code Snippet:
<Label TextType="Html" Text="{Binding NotificationText}" />
NotificationText could be something like 'Some Text <a href="https://www.example.com">Example</a> Other Text'

Since the text utilized originates from the server in HTML format, potentially including links, implementing a static link is not feasible as a workaround at this stage. Any suggestions or workarounds to address this issue would be greatly appreciated.

Steps to Reproduce

  1. Define a Label in a MAUI project.
  2. Set the TextType property to "Html".
  3. Bind the Text attribute to a property containing HTML content with a clickable link.
  4. Run the application and observe that the link within the Label is not clickable.

Version with bug

8.0.6 SR1

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Did you find any workaround?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions