cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 button focus

0 Kudos

Hi,

I want to scroll the page to the top if one of my condition fails. I achieved that by:

function pageScroll() {

    window.scrollBy(0,-50);

    scrolldelay = 0;

  }

This function is called after some few validation. now the problem is that after the page has scrolled up it comes back to the button because its on focus by defaults (i guess).

Is anyone know how to disable focus on the SAPUI5 button after clicking it?

Regards,

Bheki

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bheki,

Have you used focus() for the button?

I think that you should use removeFocusableArea(id).

Please refer to the links below for more information:

ToolPopup - SAPUI5 Demo Kit

Implementing Focus Handling - User Interface Add-On for SAP NetWeaver - SAP Library

Regards,

Ashvin

0 Kudos

Hi Ashvin,

No, i have not used focus() for the button.

and i tried you suggestion:

removeFocusableArea("rBtn"); but no luck. I get error below

rBtn is my control ID which is a button.

The value of the property 'removeFocusableArea' is null or undefined, not a Function object

Regards,

Bheki