-
Notifications
You must be signed in to change notification settings - Fork 264
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
[Toolbar(V2)] ToolbarButton with Modals Menu rendered in the wrong place #9997
Comments
Hi @gitgdako you're using the same The Because of this, it's pretty complicated getting a reference to the actual button where the popover should be opened: https://stackblitz.com/edit/github-f9pvpx-m5rxp2?file=src%2FApp.tsx,package.json Since the Toolbar and all of its subcomponents are developed by the ui5-webcomponents team, I'll forward this issue to their repo.
Please create a dedicated issue for this, since the Toolbar v1 is a completly different component, maintained in the ui5-webcomponents-react repo. Hi Colleagues, could you please check what the intended way of opening a popover via a For the
|
Sorry for the faulty Code sample. |
Hello @ui5-webcomponents-topic-p, It seems the menu is not opened because of undefined getDomRef() returned by ui5-toolbar-button, alse see the related issue #9996 Best Regards, |
Describe the bug
Adding a Menu to a ToolbarButton using state or the Modals API (https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/user-feedback-modals--docs) doesnt render the menu in the right place.
The above code sample is basically just copied from the doc
There are several things which might be unrelated that I have also noticed:
The behaviour doesnt change where we place the element
Toasts are showing a similar behaviour in some cases, dependent on where in the tree the element is placed
The menu is displayed properly using @ui5/webcomponents-react-compat Toolbar (Legacy) with a standard button
We are having similar issues in the latest 1.x versions of webcomponents(-react)
Isolated Example
https://stackblitz.com/edit/github-f9pvpx
Reproduction steps
No response
Expected Behaviour
The Menu is displayed attached to the ToolbarButton
Screenshots or Videos
You can see the menu attached at the wrong place in the bottom left
UI5 Web Components for React Version
2.2.0
UI5 Web Components Version
2.3.0
Browser
Chrome
Operating System
Windows 11
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: