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.

sap.m.ResponivePopover doesn't close automaticall when clicking next to it after losing focus by JS UI update

See original GitHub issue

I have a button with some text that is updated when an item is deleted from a list in a responsivepopover. Whenever an item is deleted, the text is updated and because of this the responsivepopover loses focus. I think because of this the popover then doesn’t close automatically anymore when clicking outside of the popover.

When one of the items is deleted from the list and I click next to the popover it does not close. But when I first click somewhere on the popover and then click next to the popover it closes.

I tried putting an element from the popover back in focus after deleting a listitem but this doesn’t work. $(oEvent.oSource.getId()).focus();

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bendktcommented, Aug 16, 2016

One thing we currently consider to fix as a kind of performance improvement, is to make the refresh on the binding work also with a deep change detection. Though this has to be planned and may take a while. We will update you on any progress here. Up to then you will have to live with the workaround.

0reactions
svbendercommented, Sep 23, 2016

Hi,

the code from the first post $(oEvent.oSource.getId()).focus(); contains no valid jQuery selector, therefore it is not working correctly. If you put the focus back to the List control it should work without problems in Chrome and Firefox.

In the function handleDeleteSelectionItem try the following after deleting the item: $("#" + oEvent.oSource.getId()).focus(); or oList.$().focus();

There can’t be provided a generic solution for this behavior. The FocusHandler is not able to decide if it’s correct to put the focus on the parent. It depends on the use case.

Best regards, Sven

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to avoid auto closing of sap.m.Popover? - SAP Community
Hey,. Is there any (clean) way to avoid the auto closing behaviour of sap.m.Popover or sap.m.ResponsivePopover?
Read more >
Pop Over in SAP UI5, Autoclose when mouse pointer goes ...
My requirement is that when the popover is open and when the mouse pointer goes outside the popver (not mouse click outside), then...
Read more >
UI Development Toolkit for HTML5 - STechies
This tutorial explains the new development for the UI Development Toolkit for HTML5, sap.ui.core, sap.m, sap.makit, sap.me, sap.ndc, sap.suite.ui.commons, ...
Read more >
Release Notes - OPENUI5 SDK
This page provides an overview of all new features and all corrections in the delivered releases for SAPUI5 Runtime, SAPUI5 Controls and SAPUI5...
Read more >
All other Rome fixes - Product Documentation | ServiceNow
Keyboard focus loss is observed in the page after deleting an existing filter condition present below the Software Model Results button.
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