maui icon indicating copy to clipboard operation
maui copied to clipboard

Link in Label with TextType HTML is not clickable

Open EduardBeke opened this issue 11 months ago • 2 comments

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

EduardBeke avatar Mar 20 '24 11:03 EduardBeke

Can repro this issue at Android platform on the latest 17.10 preview2(8.0.10). image

RoiChen001 avatar Mar 21 '24 03:03 RoiChen001

@RoiChen001 @samhouts any update on this? Is this going to be fixed?

jamers99 avatar May 02 '24 18:05 jamers99

To be fair I think I tried it a while ago and just did again today. Previously Links did just not show up as a links at all. That better in a very specific way, because having them decorated prominently is a step forward and adds a bit od pressure to make them actually work as link ;)

hinnerkweiler avatar May 26 '24 10:05 hinnerkweiler

This would be a pretty useful addition.

tonyedwardspz avatar Jun 18 '24 15:06 tonyedwardspz

I am now facing this issue in v9.0.0-rc.1.24453.9 where all html links in a label on Android and iOS are not working. Does anyone have a workaround or will a fix be due soon as we can't release our migrated app with broken links?

SandipAhluwalia avatar Oct 10 '24 15:10 SandipAhluwalia