From 72a583f1f2feabd60a661d842ad02ff6a4750611 Mon Sep 17 00:00:00 2001 From: Alona Zherdetska Date: Fri, 3 Jan 2025 21:07:49 +0100 Subject: [PATCH] fix(code-smell): fixed code smell --- .../src/components/post-megadropdown/post-megadropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/post-megadropdown/post-megadropdown.tsx b/packages/components/src/components/post-megadropdown/post-megadropdown.tsx index 91c962f895..762255949f 100644 --- a/packages/components/src/components/post-megadropdown/post-megadropdown.tsx +++ b/packages/components/src/components/post-megadropdown/post-megadropdown.tsx @@ -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');