From 0f9778e646ee1c7d8414bf8dcc0b96e30291adc5 Mon Sep 17 00:00:00 2001 From: Siddharth Kshetrapal Date: Mon, 16 Sep 2024 16:36:34 +0200 Subject: [PATCH] fix index to announce --- packages/react/src/FilteredActionList/useAnnouncements.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/FilteredActionList/useAnnouncements.tsx b/packages/react/src/FilteredActionList/useAnnouncements.tsx index 8b419d92584..597f43b779a 100644 --- a/packages/react/src/FilteredActionList/useAnnouncements.tsx +++ b/packages/react/src/FilteredActionList/useAnnouncements.tsx @@ -87,7 +87,7 @@ export const useAnnouncements = ( `List updated`, `Focused item: ${text}`, `${selected ? 'selected' : 'not selected'}`, - `${index} of ${items.length}`, + `${index + 1} of ${items.length}`, ].join(', ') announce(announcementText, {delayMs}) })