From 841a85348623b883e975550c5420f6a0cdc94ea3 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Fri, 14 Jan 2022 14:27:14 +0100 Subject: [PATCH] rm queryselector --- .../src/lib/remix-ui-vertical-icons-panel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx index a325de9054..39aecd0333 100644 --- a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx +++ b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx @@ -35,8 +35,8 @@ const RemixUiVerticalIconsPanel = ({ dispatchScrollAction({ type: 'resize', payload: { - scrollHeight: document.querySelector('#remixuiScrollable')?.scrollHeight, - clientHeight: document.querySelector('#remixuiScrollable')?.clientHeight, + scrollHeight: scrollableRef.current?.scrollHeight, + clientHeight: scrollableRef.current?.clientHeight, scrollState: false } })