Avalonia
Avalonia copied to clipboard
TextBox text unselected when getting focus trough mouse click.
Describe the bug
If a textbox get focus by clicking then selected text is deselected.
To Reproduce
mybox.GotFocus += (_, _) => mybox.SelectAll();
Expected behavior
With the code above mybox should whenever it get focus select all text which it does. However it seems that when it get's focus from a pointer event it deselects all text and it does that after the focus event code has been run.
Avalonia version
11.1.3
OS
No response
Additional context
No response