Navigating to TabView scrolls automatically scrolls to the bottom
Describe the bug When navigating to the TabView control, the page is automatically scrolled to the bottom.
Steps to reproduce the bug Go to the TabView control
Expected behavior Clicking on the control page should lead to the top of the page (not already scrolled to the bottom).
Version Info
- [ ] Xaml Controls Gallery - Downloaded from Store
- If so, which version? (1.2.x -- Found on the Settings page of the app.)
- [ ] WinUI 3 Controls Gallery - Downloaded from Store
- If so, which version? (1.3.x -- Found on the Settings page of the app.)
- [ ] App built locally from source
- If so, which branch? (WinUI 3 versions are built off the winui3 branch)
Additional context
Windows version:
- [ ] Insider Build (xxxxx)
- [ ] May 2021 Update (19043)
- [ ] October 2020 Update (19042)
- [ ] May 2020 Update (19041)
- [ ] November 2019 Update (18363)
- [ ] May 2019 Update (18362)
- [ ] October 2018 Update (17763)
- [ ] April 2018 Update (17134)
- [ ] Fall Creators Update (16299)
- [ ] Creators Update (15063)
- [ ] Anniversary Update (14393)
Device form factor:
- [ ] Desktop
- [ ] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Having looked into this and tried out some stuff for over an hour, I am very puzzled as to what the issue could be here.
Thanks for looking into it Marcel. I am quite puzzled as well. I will try to spend more time looking into this.
@stmoy You didn't happen to notice that behavior back when the page was created right?
I think this is a new issue - I feel like I would have noticed when I created the page. Usually issues like this are related to focus being set further down the page - but it looks like initial focus is on the first TabView's "+" button. It's a mystery. This might be an underlying WinUI issue.
I am fairly certain that this is an issue with the TabView loading tabs and and as such grabbing focus somehow. This is probably better suited for the WinUI repo.