microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

TextBox selection is broken when there are multiple lines

Open eduardobragaxz opened this issue 1 year ago • 2 comments

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

eduardobragaxz avatar Sep 09 '24 13:09 eduardobragaxz

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

kmgallahan avatar Sep 09 '24 21:09 kmgallahan

Image

Windows App SDK 1.6.241114003 Windows11 23H2, 24H2

thecco avatar Nov 25 '24 07:11 thecco

+1. I'm also seeing this in MAUI apps using the Editor control on Windows

jeremy-visionaid avatar Dec 16 '24 01:12 jeremy-visionaid

@codendone Are we going to have to wait until 1.8 to see a fix for this bug... ?

This interferes with my daily work and it's present in every app that updates WinUI and uses a multiline TextBox.

kmgallahan avatar Dec 16 '24 03:12 kmgallahan

The fix has been checked in for the next 1.6 servicing release in January.

codendone avatar Dec 16 '24 16:12 codendone