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 selection is broken when there are multiple lines #9965

Closed
eduardobragaxz opened this issue Sep 9, 2024 · 6 comments
Closed

TextBox selection is broken when there are multiple lines #9965

eduardobragaxz opened this issue Sep 9, 2024 · 6 comments
Labels
area-TextBox TextBox, RichEditBox bug Something isn't working fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. Regression team-Controls Issue for the Controls team

Comments

@eduardobragaxz
Copy link

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

Gravando.2024-09-08.232500.mp4

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 eduardobragaxz added the bug Something isn't working label Sep 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 9, 2024
@kmgallahan
Copy link
Contributor

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

@codendone codendone added area-TextBox TextBox, RichEditBox team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Sep 13, 2024
@AlexanderBlackman
Copy link

AlexanderBlackman commented Oct 15, 2024

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

@thecco
Copy link

thecco commented Nov 25, 2024

Image

Windows App SDK 1.6.241114003
Windows11 23H2, 24H2

@jeremy-visionaid
Copy link

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

@kmgallahan
Copy link
Contributor

@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.

@codendone
Copy link
Contributor

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

@codendone codendone added the fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TextBox TextBox, RichEditBox bug Something isn't working fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. Regression team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

7 participants