Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Update NavigationSideMenu.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
MadanKumarGovindaswamy committed Feb 20, 2024
1 parent 0dd5b40 commit 5382cb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class NavigationSideMenu extends Component {
// To add focus to the first sub menu item
if (node && this.needsFocus) {
const subMenuNodes = node.querySelectorAll('[data-menu-item]');
if (subMenuNodes) {
if (subMenuNodes && subMenuNodes.length) {
subMenuNodes[0].focus();
}
}
Expand Down

0 comments on commit 5382cb3

Please sign in to comment.