From 37842e907aa8ab071885fe15ec6739fa0feac0c0 Mon Sep 17 00:00:00 2001 From: Dariusz Szut Date: Mon, 14 Oct 2024 15:37:34 +0200 Subject: [PATCH] IBX-8663: Fixed dropdown remove listener --- src/bundle/ui-dev/src/modules/common/dropdown/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/ui-dev/src/modules/common/dropdown/dropdown.js b/src/bundle/ui-dev/src/modules/common/dropdown/dropdown.js index fa29aea84d..9b1de6b17f 100644 --- a/src/bundle/ui-dev/src/modules/common/dropdown/dropdown.js +++ b/src/bundle/ui-dev/src/modules/common/dropdown/dropdown.js @@ -193,7 +193,7 @@ const Dropdown = ({ return () => { document.body.removeEventListener('click', onInteractionOutside); - document.body.removeEventListener('click', calculateAndSetItemsListStyles); + scrollContainer?.removeEventListener('scroll', calculateAndSetItemsListStyles); setItemsListStyles({}); };