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

Unable to Enter Text into TextBox inside ContentDialog in WinUI3 Desktop #2704

Closed
eleanorleffler opened this issue Jun 17, 2020 · 15 comments
Closed
Labels
appModel-win32 Exclusive to WinUI 3 Win32 Desktop apps area-Dialogs area-TextBox TextBox, RichEditBox product-winui3 WinUI 3 issues

Comments

@eleanorleffler
Copy link

Describe the bug

In WinUI3 Desktop, we are unable to type in text into the TextBoxes inside ContentDialogs with some exceptions.

More detailed observations and debugging below in the "Additional Context" section.

Steps to reproduce the bug

  1. Clone our WinUI3 Problems TextBox repository.
  2. Go to the TextBoxWinUI folder.
  3. Open the TextBoxWinUI solution.
  4. Build and run with Debug x64.
  5. Once the application is loaded, click the "Click me" button.
  6. Without clicking or clicking away from or outside of the application window, start typing into the TextBox.
  7. No characters should appear - unless actions described in the "Additional context" are performed.

Expected behavior

We expect text to appear within the textbox when typing. We expect to see the same behavior we saw in UWP.

Build and run the TextBoxUWP solution inside the TextBoxUWP folder to see expected behavior.

Screenshots

TextBoxCurrentBehavior

Screenshot#1 - TextBox inside ContentDialog

Version Info

NuGet package version:
[Microsoft.VCRTForwarders.140 1.0.6]
[Microsoft.WinUI 3.0.0-preview1.200515.3]

Targeting:
Target: Universal Windows
Target version: Windows 10, version 1809 (10.0; Build 17763)
Min version: Windows 10, version 1809 (10.0; Build 17763)

Windows 10 version Saw the problem?
Insider Build (xxxxx)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763) Yes
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT

Additional context

  • When trying to type into the TextBox immediately, no characters appear.

  • When trying to type quickly with many characters into the TextBox immediately, the text cursor seems to freeze up and not blink.

  • However, after clicking away from or outside of the application window, we are able to type in a subset of characters into the TextBox. This subset includes:

    • These characters which use the same 5 keys with and without the shift key: []{}'"|`~
    • Backspace key works.
    • Characters created using the Alt key and numeric keypad (e.g. Alt-65 for "A").
    • Characters copied from elsewhere can be pasted into the TextBox.
@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label Jun 17, 2020
@StephenLPeters StephenLPeters added area-Dialogs area-TextBox TextBox, RichEditBox product-winui3 WinUI 3 issues appModel-win32 Exclusive to WinUI 3 Win32 Desktop apps and removed needs-triage Issue needs to be triaged by the area owners labels Jun 18, 2020
@dynamiquel
Copy link

I'm having the same issue, is there no workaround? My app depends on ContentDialogs with text boxes.

@ranjeshj
Copy link
Contributor

@Austin-Lamb @JesseCol @anawishnoff as FYI.

@smj389
Copy link

smj389 commented Jul 28, 2020

Just to say, I have the same problem with Preview 2. I am on the latest Insider build of Windows 10.

@Austin-Lamb
Copy link

This bug appears to be fixed internally, hopefully it will be in Preview 3 later this year.

@asklar
Copy link
Member

asklar commented Sep 23, 2020

@lyahdav This is an issue on OS XAML too

@smj389
Copy link

smj389 commented Nov 26, 2020

@Austin-Lamb I am having this issue in Preview 3 as well.

@smj389
Copy link

smj389 commented Dec 3, 2020

@anawishnoff Sorry for pinging you as well - I just want to make sure it is known that this bug still exists in WinUI Preview 3.0, and is not fixed as @Austin-Lamb predicted on Sep 3.

@anawishnoff
Copy link
Contributor

No problem @smj389 - we're actively looking into this and I hope to report back soon!

@smj389
Copy link

smj389 commented Dec 8, 2020

I am also experiencing the same issue with Flyouts.

@crramirez
Copy link
Contributor

Please add this to the WinUI 3.0 Milestone. The march version shouldn't be shipped without this been solved.

@anawishnoff
Copy link
Contributor

@smj389, @crramirez It looks like this bug will be fixed in the next release of WinUI 3.

@anawishnoff
Copy link
Contributor

Confirming - this bug has been fixed, and the fix will be available in our next release - WinUI 3 Preview 4. We're hoping to ship this preview release in early February. Thanks!

@anawishnoff anawishnoff added the fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. label Jan 27, 2021
@crramirez
Copy link
Contributor

Wiiiii, thanks a lot for letting us know.

@anawishnoff anawishnoff reopened this Jan 28, 2021
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 28, 2021
@anawishnoff anawishnoff removed the needs-triage Issue needs to be triaged by the area owners label Jan 28, 2021
@bpulliam bpulliam removed the fixed-internally This bug has been fixed, and the fix will be shipped in the next version of WinUI 3. label Feb 29, 2024
@AlexeiNaabal
Copy link

The label fixed-internally was removed, does it means this issue is still exists? Does this issue being investigating?

@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
@codendone
Copy link
Contributor

@AlexeiNaabal fixed-internally was removed because the fix was released long ago.

@codendone codendone removed the needs-triage Issue needs to be triaged by the area owners label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appModel-win32 Exclusive to WinUI 3 Win32 Desktop apps area-Dialogs area-TextBox TextBox, RichEditBox product-winui3 WinUI 3 issues
Projects
None yet
Development

No branches or pull requests