ui5-responsivePopover: when open the ui5-responsivePopover, it moves from other place to the target openBy element place.
See original GitHub issueHi colleague, i am from Successfactors team.Please help to take a look at this issue.
Describe the bug When open the ui5-responsivePopover, the popover showing at other place at first, then move to the target openBy element place. Expected: it should be located at the openBy element place directly when first showing.
To reproduce Steps to reproduce the behavior:
- Create one responsivePopover and openBy button, click on button to open the responsivePopover
- Only render responsivePopover when isResponsivePopoverOpen=true
const [isResponsivePopoverOpen, setResponsivePopoverOpen] = useState(false);
const handleButtonClick = () => {
setResponsivePopoverOpen(true);
resPopoverRef.open(buttonRef)
};
return (
<ui5-button ref={buttonRef} onClick={handleButtonClick}>Open Popover</ui5-button>
{isResponsivePopover && (
<ui5-responsive-popover ref={resPopoverRef} header-text="Newsletter subscription">
<div class="popover-content">
<ui5-label for="emailInput" required>Email: </ui5-label>
</div>
</ui5-responsive-popover>
)}
)
Expected behavior ui5-responsivePopover should be located at the openBy element place directly when first showing.
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
sap.m.Popover - API Reference - Demo Kit - SAPUI5 SDK
Overview. The popover displays additional information for an object in a compact way and without leaving the page. The popover can contain various...
Read more >Popover - Fiori Design Guidelines
The popover can contain various UI elements such as fields, tables, images, and charts. It can also include actions in the footer.
Read more >1.0.0-rc.15 - UI5 Web Components - SAP
... ui5-responsive-popover: rename “openBy” method to “showAt” (#3107) (59f5354) The public method “open” has been renamed to “showAt”.
Read more >Why opening popover closes select? - sapui5
Create a popover and open it; and inspect the html element with a debugger tool. You will see that it is rendered under...
Read more >Sapui5 popover example - vivre vera
SAPUI5 combobox or in other words drop-down element is a drop-down control. ... The ui5-responsive-popover acts as a Popover on desktop and tablet,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @fifoosid ,
Here is the example https://codesandbox.io/s/quirky-driscoll-g6seb?file=/src/App.js.
Regards, Sherry
Thanks @fifoosid for the quick response and kindly explanation, the proposed solution works for me.
Regards, Sherry