maui
maui copied to clipboard
Link in Label with TextType HTML is not clickable
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
- Define a Label in a MAUI project.
- Set the TextType property to "Html".
- Bind the Text attribute to a property containing HTML content with a clickable link.
- 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
Can repro this issue at Android platform on the latest 17.10 preview2(8.0.10).
@RoiChen001 @samhouts any update on this? Is this going to be fixed?
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 ;)
This would be a pretty useful addition.
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?