From 326e8b9881ae142f45428c0e9e929d2f44cf5406 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:22:50 +0100 Subject: [PATCH] Prevent EmptyView from taking over click events E.g. in the reader it was not possible to open the overlay while the EmptyView was visible due to it blocking the readers click handling --- .../core/components/placeholder/EmptyView.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/modules/core/components/placeholder/EmptyView.tsx b/src/modules/core/components/placeholder/EmptyView.tsx index 0dbbdcce..f72fa51e 100644 --- a/src/modules/core/components/placeholder/EmptyView.tsx +++ b/src/modules/core/components/placeholder/EmptyView.tsx @@ -38,25 +38,33 @@ export function EmptyView({ message, messageExtra, retry, noFaces, sx }: EmptyVi return ( {!noFaces && ( - + {errorFace} )} - {message} - + + {message} + + {messageExtra} - {retry && } + {retry && ( + + )} ); }