Skip to content

Commit

Permalink
Fix SelectableTextBlock selection (#18049)
Browse files Browse the repository at this point in the history
  • Loading branch information
love-linger authored Feb 3, 2025
1 parent beaefef commit eafb41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/SelectableTextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public async void Copy()
/// </summary>
public void SelectAll()
{
var text = Text;
var text = HasComplexContent ? Inlines?.Text : Text;

SetCurrentValue(SelectionStartProperty, 0);
SetCurrentValue(SelectionEndProperty, text?.Length ?? 0);
Expand Down

0 comments on commit eafb41d

Please sign in to comment.