microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.36k stars 678 forks source link

TextBox selection is broken when there are multiple lines #9965

Open eduardobragaxz opened 2 months ago

eduardobragaxz commented 2 months ago

Describe the bug

If you write multiple lines in a TextBox and select text from the second line and below, the selection won't go away. In light mode the foreground changes back to black when selecting another piece of the text.

Steps to reproduce the bug

Create a project, add a TextBox that wraps text and/or accepts return and write on it.

Expected behavior

No response

Screenshots

https://github.com/user-attachments/assets/b5cf4c47-23c8-484d-a51e-74d06b3cb952

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

kmgallahan commented 2 months ago

I thought it was just me due to some custom TextBox work, but hadn't investigated yet. Thanks for opening the issue.

AlexanderBlackman commented 3 weeks ago

I've had the same problem with RichEditBox too. Image