Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to disable the focus on bar header layout headings

SA-50391

Summary



Unable to disable the focus on bar header layout headings on clicking the Tab key.


Error Messages



Not Applicable.


Steps to Reproduce

Unknown.


Root Cause

This is as per Pega product design of dynamic layouts configured with a bar header.


Resolution

Perform the following local-change:

Apply the following script in the UserWorkForm:

<script>
function clearBarTabIndex(){
function removetabindex(item){
if(item && !item.getAttribute("aria-expanded")){
item.removeAttribute("tabindex");
}
}
try{
var divEle = document.querySelectorAll("div[role='HEADING'][class*='header']");
if(divEle.length){
divEle = Array.prototype.slice.call(divEle,0);
divEle.forEach(removetabindex);
}
divEle = document.querySelectorAll("div[role='heading'][class*='header']");
if(divEle.length){
divEle = Array.prototype.slice.call(divEle,0);
divEle.forEach(removetabindex);
}
}catch(e){}
}
try{
pega.u.d.attachOnload(clearBarTabIndex, true);
}catch(e){}

</script>

Published March 9, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us