Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextBox text unselected when getting focus trough mouse click. #16825

Open
mateli opened this issue Aug 27, 2024 · 0 comments
Open

TextBox text unselected when getting focus trough mouse click. #16825

mateli opened this issue Aug 27, 2024 · 0 comments
Labels

Comments

@mateli
Copy link

mateli commented Aug 27, 2024

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

@mateli mateli added the bug label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant