ScrollHeader with a TextBox inside it gets focus on tapping anywhere on header #3970
Replies: 4 comments
-
This is an issue with ScrollViewer (it's used in the ScrollHeader). For example, the following has the exact same behavior:
Not sure if there is a way to fix this without removing the ScrollViewer, some investigation is needed. Open to anyone to investigate further. |
Beta Was this translation helpful? Give feedback.
-
if the issue is in ScrollViewer which is a platform control and is usually hard to get a fast change or fix in them, would it be possible to request winUI team to make the fix and ship an improved ScrollViewer in winUI library? Would that make sense here? |
Beta Was this translation helpful? Give feedback.
-
I might be wrong, but I don't think there is a ScrollViewer in WinUI. |
Beta Was this translation helpful? Give feedback.
-
There was one in the WinUI prerelease but got taken out. It’s probably not ready yet. |
Beta Was this translation helpful? Give feedback.
-
I'm submitting a...
Bug report (I searched for similar issues and did not find one)
Current behavior
While using ScrollHeader with AdaptiveGridView. If we put a TextBox/AutoSuggestBox in the header, the autosuggestbox/textbox gets focus no matter where the user taps on the header and to make it loose its focus, user has to tap outside the header. the issue goes away if normal header is used without ScrollHeader.
Expected behavior
the AutoSuggestBox/TextBox should only get focus when tapped only on it and not by tapping anywhere else on the header.
Minimal reproduction of the problem with instructions
I have made a repo to reproduce the issue : https://github.com/touseefbsb/ScrollHeaderBug
it has 2 empty AdaptiveGridView controls with headers 1 has AutoSuggestBox and other has TextBox in its header and both also have a TextBlock to make some additional space in the header.
Environment
Beta Was this translation helpful? Give feedback.
All reactions