Skip to content

Commit dc4ac55

Browse files
committed
Update NotificationsPopover.tsx
1 parent f3e0280 commit dc4ac55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

patterns/navigation-layout/src/NotificationsPopover.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@ export const NotificationsPopover = forwardRef<ResponsivePopoverDomRef, Notifica
8585
content: `This is dynamically loaded notification #${newIndex}.`,
8686
};
8787
});
88+
//@ts-expect-error: `items` are available but private
8889
const focusIndex = e.target.items.length;
8990
setGroupLoading(true);
9091
setTimeout(() => {
9192
setTodayNotifications((prev) => [...prev, ...nextItems]);
9293
setGroupLoading(false);
9394
setTimeout(() => {
95+
//@ts-expect-error: `items` are available but private
9496
e.target.items[focusIndex].focus();
9597
}, 500);
9698
}, 2000);

0 commit comments

Comments
 (0)