maui icon indicating copy to clipboard operation
maui copied to clipboard

[iOS] Fix for TextDecorations not updating after modifying Label text

Open Tamilarasan-Paranthaman opened this issue 1 year ago • 5 comments

Root Cause of the issue

When setting normal text dynamically, the previously set attributed text decoration remains. When trying to set new attributed text decoration, both the previously set and newly set attributed text decoration appear in the label.

Description of Change

When updating normal text, make sure that AttributedText is set to null to remove any decorations from previous updates. This ensures that the newly set attributed text works correctly.

Issues Fixed

Fixes #16967

Tested the behaviour in the following platforms

  • [x] Android
  • [x] Windows
  • [x] iOS
  • [x] Mac

Screenshot

Before Issue Fix After Issue Fix

Tamilarasan-Paranthaman avatar Oct 17 '24 07:10 Tamilarasan-Paranthaman

Hey there @Tamilarasan-Paranthaman! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

/azp run

jsuarezruiz avatar Oct 17 '24 09:10 jsuarezruiz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 17 '24 09:10 azure-pipelines[bot]

/rebase

Tamilarasan-Paranthaman avatar Oct 22 '24 06:10 Tamilarasan-Paranthaman

/rebase

jsuarezruiz avatar Oct 23 '24 09:10 jsuarezruiz

/azp run

PureWeen avatar Oct 24 '24 17:10 PureWeen

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Oct 24 '24 17:10 azure-pipelines[bot]