-
Notifications
You must be signed in to change notification settings - Fork 273
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
[ToolbarButton with Menu]: Menu is briefly rendered in wrong place when conditionally rendered #10187
Comments
Hello colleagues, Please check this menu/popup issue. This seems to reproduce without the toolbar as well.
Kind Regards, |
Hello, can you give us an update to that issue? BR Lukas |
Hello @Lukas742, If you're dynamically creating a menu, popover, or any other popup, you can try opening it in the next tick. In your case, you can use:
Best, |
@Lukas742, I'm reopening the issue because we're exploring a potential solution that won't involve using setTimeout. |
Bug Description
This is a followup issue to this one and was noted by @gitgdako in this post.
When the Menu is conditionally rendered (typical in React) the
Menu
pops up in the top left corner before it snaps to the opener when opened.2024-11-15_09-33-02.mp4
Affected Component
No response
Expected Behaviour
No response
Isolated Example
https://stackblitz.com/edit/github-8upxfb-ndn9tp?file=index.html,main.js
Steps to Reproduce
Menu
by clicking the buttonIn case it's not reproducible, you can throttle your CPU in the dev tools to make the issue more prominent.
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.4.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: