Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fixing issue #15314
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisstromberg authored and jfversluis committed Feb 15, 2023
1 parent b28fb45 commit f90ea4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Forms.Platform.iOS/Renderers/LabelRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ void UpdateTextDecorations()
if (!(Control.AttributedStringValue?.Length > 0))
return;
#endif
// If FormattedText is changed after the initial render, it will be removed on either line 285 or line 290.
if(IsTextFormatted && _formatted.Spans?.Any(span => span.TextDecoration > TextDecorations.None))
return;

var textDecorations = Element.TextDecorations;
#if __MOBILE__
Expand Down

0 comments on commit f90ea4c

Please sign in to comment.