From de3c96d32718298d612be97e0a8b296e4908ef40 Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Thu, 14 Nov 2024 14:56:42 +0100 Subject: [PATCH] fix(AnalyticalTable): block interaction during loading (#6602) --- .../AnalyticalTable/AnalyticalTable.stories.tsx | 9 +++++---- packages/main/src/components/AnalyticalTable/index.tsx | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.tsx b/packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.tsx index a455f7fb047..58d164ce9da 100644 --- a/packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.tsx +++ b/packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.tsx @@ -92,13 +92,14 @@ const meta = { disableSortBy: true, Cell: (instance) => { const { cell, row, webComponentsReactProperties } = instance; - // disable buttons if overlay is active to prevent focus - const isOverlay = webComponentsReactProperties.showOverlay; + const { loading, showOverlay } = webComponentsReactProperties; + // disable buttons if overlay is active or the table is loading, to prevent focus + const disabled = loading || showOverlay; // console.log('This is your row data', row.original); return ( -