-
Notifications
You must be signed in to change notification settings - Fork 693
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
Text Controls don't lose highlighting when unselected (TextBox / RichEditBox) #10071
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you! Open similar issues:
|
The same problem with WASDK 1.6.241106002. |
Urgh, I won't be able to update or release anything until this is fixed. Text input is pretty much essential to any app. |
CC: this is affecting customers of MAUI as well. |
I have found a partial fix with only a small amount of jumping of the scrollerviewer if the text box is inside of a scrollerviewer. you need to hookup to the selectionchanged event, i left in the some old code of stuff that does not work or work well
|
Describe the bug
Selecting text highlights the text, but unselecting it still maintains the highlighted background colour.
Interestingly foreground colour doesn't persist after unselection.
This weird behaviour only occurs after the first visual row, which behaves normally.
Only multiline selections that include the first row behave normally.
This is a problem in both TextBox and RichEditBox.
All highlighting is lost when the control regains focus. (As expected)
Steps to reproduce the bug
Loaded the normal WinUI 3 app template.
Added a RichEditBox and a TextBox.
Highlight some text after the first visual row. (it doesn't matter if done by the keyboard or mouse)
Highlighted some other text to clicked elsewhere, the highlighting background colour still persists in the now unselected text.
No custom styling has been applied. Light/Dark theme doesn't change anything.
This bug occurs with both the default and newest WASDK
Expected behavior
Selected text should lose its highlighting if unselected.
This should happen no matter what line it is.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: