Update PanelContainerComponent.tsx

This commit is contained in:
MokireddySampath 2024-01-02 22:52:22 +05:30 committed by GitHub
parent eba617f53f
commit 309fcd112e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -106,7 +106,9 @@ export class PanelContainerComponent extends React.Component<PanelContainerProps
let focusableParent = this.findFocusableParent(targetElement); let focusableParent = this.findFocusableParent(targetElement);
if (focusableParent) { if (focusableParent) {
setTimeout(() => { setTimeout(() => {
if(focusableParent){
focusableParent.focus(); focusableParent.focus();
}
}, 100); }, 100);
sessionStorage.removeItem("focusedElementId"); sessionStorage.removeItem("focusedElementId");
} }