From a6f93fd3c7e5cec18d635ca6bc45a007e7484bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 19 Oct 2025 19:39:24 +0200 Subject: [PATCH] pl-fe: reduce nested elements part 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/modal-root.tsx | 2 +- packages/pl-fe/src/init/pl-fe-mount.tsx | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/pl-fe/src/components/modal-root.tsx b/packages/pl-fe/src/components/modal-root.tsx index 307d049bf..904376f00 100644 --- a/packages/pl-fe/src/components/modal-root.tsx +++ b/packages/pl-fe/src/components/modal-root.tsx @@ -151,7 +151,7 @@ const ModalRoot: React.FC = ({ children, onCancel, onClose, type }) }; const getSiblings = () => Array(...(ref.current!.parentElement!.childNodes as any as ChildNode[])) - .filter(node => (node as HTMLDivElement).id !== 'toaster') + .filter(node => (node as HTMLDivElement).id !== '_rht_toaster') .filter(node => node !== ref.current); useEffect(() => { diff --git a/packages/pl-fe/src/init/pl-fe-mount.tsx b/packages/pl-fe/src/init/pl-fe-mount.tsx index 2c8ee8263..c1afd6181 100644 --- a/packages/pl-fe/src/init/pl-fe-mount.tsx +++ b/packages/pl-fe/src/init/pl-fe-mount.tsx @@ -60,12 +60,10 @@ const PlFeMount = () => { -
- -
+