From bb8377704172c94501ac44aba37cdc47a5ce9046 Mon Sep 17 00:00:00 2001 From: gabriellsh <40830821+gabriellsh@users.noreply.github.com> Date: Tue, 5 May 2026 17:36:04 -0300 Subject: [PATCH] fix(ui-client): OverlayScrollbars crashes application when rendering elements in a different document (#40391) --- .../src/components/CustomScrollbars/CustomScrollbars.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-client/src/components/CustomScrollbars/CustomScrollbars.tsx b/packages/ui-client/src/components/CustomScrollbars/CustomScrollbars.tsx index 231983cb95d..f2aab56959c 100644 --- a/packages/ui-client/src/components/CustomScrollbars/CustomScrollbars.tsx +++ b/packages/ui-client/src/components/CustomScrollbars/CustomScrollbars.tsx @@ -25,7 +25,7 @@ const CustomScrollbars = forwardRef(function const { current: root } = rootRef; if (root) { - initialize(root); + initialize({ target: root }); const instance = osInstance(); if (!instance || !ref) {