-
Notifications
You must be signed in to change notification settings - Fork 40
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
[Shadow Builder][Safari] Clicking the IconToggleButtons randomly scrolls the page back to the top #985
Comments
I have the same behavior in one of my branches for Chefs, but not only on Safari, but also in Chrome, and on Android as well. |
@eriklimakc, can I have access to that branch? Issues seem similar, but starting from the fact that it looks like a ListView/ItemsControl in your sample, I want to say they are different. I will check it out too. |
Also happens (tested Chrome) on this PR unoplatform/Uno.Themes#997. You can see in the static wasm link here: https://salmon-rock-0cfebe70f-997.eastus2.azurestaticapps.net/ Go to Helpers > ControlExtensions > Click the Leading or Trailing Icon in the TextBox example. |
I'm not able to reproduce with latest builds of Safari, @ajpinedam could you validate again? Thanks! |
It was reported a similar issue in Chefs and other apps, so the issue still seems to be there. |
i just noticed something perhaps similar, but on-focus-lost:
i am using Chrome (Version 120.0.6099.217 (Official Build) (64-bit)) |
Following Xiao's repro steps gave a different repro. Tested on vivaldi, brave and firefox.
This will only work when a page is first loaded. Changing the page makes it repro again. Also, changing the control in the checkbox inside Toolkit\ShadowContainer will also make it repro (any control will do, not necessarily ToggleButton). Edit: Oh, a similar repro seems to be #1062 |
I cannot reproduce this issue anymore in the canary. @sakshi173 can you try again? |
@jeromelaban I reproed it just now check out the recording here. Note that the expanders in the gallery main navigation do the same thing bu on every click: opening a sections scrolls the list all the way back to the top: Screen.Recording.2024-05-24.at.12.03.45.PM.movI get both issues on both Safari and Chrome |
@NVLudwig this happens in prod, but not on the canary. Can you validate: https://unogallerycanary.z27.web.core.windows.net |
@jeromelaban indeed the canary link does not have this bug. I noticed 2 sperate issues while looking into the one above:
![]()
Screen.Recording.2024-05-28.at.9.58.26.AM.movShould I make separate issues? |
@jeromelaban and @NVLudwig, I checked this issue on the Canary build using multiple browsers (Chrome, MS Edge, Opera), and it is working fine on all of them. However, as Ludwig mentioned, this issue is specific to the Safari browser. Unfortunately, I don't have Safari installed on my laptop, and my attempts to install it have been unsuccessful. As a result, I am unable to test this issue on Safari. Please let me know if this is acceptable for you. Below is the recording for the Canary build. Uno.Gallery.-.Opera.2024-05-28.11-06-36.mp4 |
@sakshi173 can test on your mac now please? |
@jerome, I retested this defect on Mac book, and I am able to reproduce it. below is the video Screen.Recording.2024-06-12.at.4.13.01.PM.mov |
@sakshi173 I'm sorry, I do not see what you're reproducing. I don't see any scrolling up? What are you reproducing? |
I think the video refers to one of the other 2 issues I found and was asking about higher up in this thread |
@jeromelaban I thought now I have to reproduce this issue "Only on Canary+Safari the iconToggleButton "flashes" when you click it's neighbour" as for the main issue "[Shadow Builder][Safari] Clicking the IconToggleButtons randomly scrolls the page back to the top" , I have already updated that I am not able to reproduce it and we can close them. |
Thanks. I see, let's not deal with multiple issues in a single issue. Let's split them instead. |
This issue is now split to unoplatform/Uno.Themes#1430 and unoplatform/Uno.Themes#1431 |
Current behavior
Safari.Scroll.to.top.on.click.mov
Clicking the ToggleButtons will at times trigger a scroll-to-top and it seems to happen randomly, clicking the same button twice will not always give you the same result.
Expected behavior
No scrolling at all
How to reproduce it (as minimally and precisely as possible)
Launch latest safari on mac and navigate to shadowcontainer/IconToggleButton
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
Visual Studio:
Relevant plugins:
Anything else we need to know?
May be related to an issue @eriklimakc is investigating about this behaviour in Chrome in one of his branches
The text was updated successfully, but these errors were encountered: