question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ui5-responsivePopover: when open the ui5-responsivePopover, it moves from other place to the target openBy element place.

See original GitHub issue

Hi 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:

  1. Create one responsivePopover and openBy button, click on button to open the responsivePopover
  2. 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 responsivePopover issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SherrySherry123commented, Jun 16, 2020
0reactions
SherrySherry123commented, Jun 19, 2020

Thanks @fifoosid for the quick response and kindly explanation, the proposed solution works for me.

Regards, Sherry

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found