-
Notifications
You must be signed in to change notification settings - Fork 260
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
[SF][Wizard]: Wizard will scroll back to step 1 when open Menu popover(Firefox 124.0.1) #8544
Comments
Hi @i323808 we moved to StackBlitz as our preferred web IDE/sandbox as it's not possible anymore to edit codeSandboxes with a free plan. It is not recommended mounting popovers or dialogs (see FAQs), like the Example: https://stackblitz.com/edit/github-bhutxp?file=src%2FApp.tsx I'm going to close this issue now, if you still face issues after applying the recommended changes, please let us know. |
Hi @Lukas742 , This issue only can be reproduced when there is a BR, |
Thank you @i323808 for pointing this out. Since this behavior also occurs without our wrapper or React, I'm going to forward this issue to the ui5-webcomponents repo, as the Wizard, ShellBar and Menu are all developed there. Hi colleagues, https://stackblitz.com/edit/js-7cztzr?file=index.html,index.js |
Hello @SAP/ui5-webcomponents-topic-rl, The issue is reproducible via the provided snippet in Firefox (Windows) as described by the author. Best regards, |
The issue is fixed in 2.0, but it requires a fix for 1.x as well. A few things I noticed while looking at the issue:
|
Hey @i323808 We have fixed that issue in the latest 2.0.1 release. I would like to ask if a fix in 2.xx is enough for you? Best Regards! |
Hi @MapTo0 , Thanks for updates. We won't upgrade UI5 to 2.x.x in next release(2411). Could you please downport the code fix to 1.24.x? Thanks a million! |
Dear @SAP/ui5-webcomponents-topic-b , This scrolling happens due to the rendering of an additional <div
class="ui5-menu-submenus"
>
</div> removing that part solves the issue. I think that somehow adding that steals the focus or makes the page to scroll up. Test page: <body class="wizard_test1auto">
<div style="height: 900px">
<ui5-wizard>
<ui5-wizard-step title-text="Step 1">
<h1>Step 1</h1>
<p>
Sed fermentum, mi et tristique ullamcorper, sapien sapien faucibus
sem, quis pretium nibh lorem malesuada diam. Nulla quis arcu
aliquet, feugiat massa semper, volutpat diam. Nam vitae ante
posuere, molestie neque sit amet, dapibus velit. Maecenas eleifend
tempor lorem. Mauris vitae elementum mi, sed eleifend ligula.
Nulla tempor vulputate dolor, nec dignissim quam convallis ut.
Praesent vitae commodo felis, ut iaculis felis. Fusce quis
eleifend sapien, eget facilisis nibh. Suspendisse est velit,
scelerisque ut commodo eget, dignissim quis metus. Cras faucibus
consequat gravida. Curabitur vitae quam felis. Phasellus ac leo
eleifend, commodo tortor et, varius quam. Aliquam erat volutpat
Sed fermentum, mi et tristique ullamcorper, sapien sapien faucibus
sem, quis pretium nibh lorem malesuada diam. Nulla quis arcu
aliquet, feugiat massa semper, volutpat diam. Nam vitae ante
posuere, molestie neque sit amet, dapibus velit. Maecenas eleifend
tempor lorem. Mauris vitae elementum mi, sed eleifend ligula.
Nulla tempor vulputate dolor, nec dignissim quam convallis ut.
Praesent vitae commodo felis, ut iaculis felis. Fusce quis
eleifend sapien, eget facilisis nibh. Suspendisse est velit,
scelerisque ut commodo eget, dignissim quis metus. Cras faucibus
consequat gravida. Curabitur vitae quam felis. Phasellus ac leo
eleifend, commodo tortor et, varius quam. Aliquam erat volutpat
Sed fermentum, mi et tristique ullamcorper, sapien sapien faucibus
sem, quis pretium nibh lorem malesuada diam. Nulla quis arcu
aliquet, feugiat massa semper, volutpat diam. Nam vitae ante
posuere, molestie neque sit amet, dapibus velit. Maecenas eleifend
tempor lorem. Mauris vitae elementum mi, sed eleifend ligula.
Nulla tempor vulputate dolor, nec dignissim quam convallis ut.
Praesent vitae commodo felis, ut iaculis felis. Fusce quis
eleifend sapien, eget facilisis nibh. Suspendisse est velit,
scelerisque ut commodo eget, dignissim quis metus. Cras faucibus
consequat gravida. Curabitur vitae quam felis. Phasellus ac leo
eleifend, commodo tortor et, varius quam. Aliquam erat volutpat
Sed fermentum, mi et tristique ullamcorper, sapien sapien faucibus
sem, quis pretium nibh lorem malesuada diam. Nulla quis arcu
aliquet, feugiat massa semper, volutpat diam. Nam vitae ante
posuere, molestie neque sit amet, dapibus velit. Maecenas eleifend
tempor lorem. Mauris vitae elementum mi, sed eleifend ligula.
Nulla tempor vulputate dolor, nec dignissim quam convallis ut.
Praesent vitae commodo felis, ut iaculis felis. Fusce quis
eleifend sapien, eget facilisis nibh. Suspendisse est velit,
scelerisque ut commodo eget, dignissim quis metus. Cras faucibus
consequat gravida. Curabitur vitae quam felis. Phasellus ac leo
eleifend, commodo tortor et, varius quam. Aliquam erat volutpat
Sed fermentum, mi et tristique ullamcorper, sapien sapien faucibus
sem, quis pretium nibh lorem malesuada diam. Nulla quis arcu
aliquet, feugiat massa semper, volutpat diam. Nam vitae ante
posuere, molestie neque sit amet, dapibus velit. Maecenas eleifend
tempor lorem. Mauris vitae elementum mi, sed eleifend ligula.
Nulla tempor vulputate dolor, nec dignissim quam convallis ut.
Praesent vitae commodo felis, ut iaculis felis. Fusce quis
eleifend sapien, eget facilisis nibh. Suspendisse est velit,
scelerisque ut commodo eget, dignissim quis metus. Cras faucibus
consequat gravida. Curabitur vitae quam felis. Phasellus ac leo
eleifend, commodo tortor et, varius quam. Aliquam erat volutpat
</p>
</ui5-wizard-step>
<ui5-wizard-step title-text="Step 2">
<h1>Step 2</h1>
<ui5-button id="openMenuBtn">Open Menu</ui5-button>
<ui5-menu opener="openMenuBtn" id="menu">
<ui5-menu-item text="Item1"></ui5-menu-item>
</ui5-menu>
</ui5-wizard-step>
</ui5-wizard>
</div>
<script>
const opener = document.getElementById('openMenuBtn');
const menu = document.getElementById('menu');
opener.addEventListener('click', () => {
menu.setAttribute('open', 'open');
});
</script>
</body> |
Hello, everyone! The issue has been inactive for 21 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 days! |
Describe the bug
Wizard
scrolls back to step 1 when openMenu
popover in step 2 if there is aShellbar
component. This issue only can be reproduced using Firefox.Isolated Example
No response
Reproduction steps
Expected Behaviour
The wizard component should stay at Step2.
Screenshots or Videos
shellbar_wizard_menu.mp4
UI5 Web Components for React Version
1.24.0
UI5 Web Components Version
1.21.0
Browser
Firefox
Operating System
macOS Sonoma 14.3.1
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: