Skip to content

Commit

Permalink
fix(code-smell): fixed code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
alionazherdetska committed Jan 3, 2025
1 parent aec21de commit 72a583f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class PostMegadropdown {
const megadropdownItems = this.getPostListItems();
if (megadropdownItems.length > 0) {
// Focus the first item initially
(megadropdownItems[0] as HTMLElement).focus();
megadropdownItems[0].focus();
}
} else {
console.error('show: popoverRef is null or undefined');
Expand Down

0 comments on commit 72a583f

Please sign in to comment.