sap.m.ResponivePopover doesn't close automaticall when clicking next to it after losing focus by JS UI update
See original GitHub issueI 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:
- Created 7 years ago
- Comments:8 (6 by maintainers)
Top 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 >
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 Free
Top 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
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.
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();
oroList.$().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