From 59d4c3d72fd4a95f5f6b41b2b84444184b89d3a1 Mon Sep 17 00:00:00 2001 From: "Sergey S. Volkov" Date: Wed, 26 Jul 2023 19:24:41 +0300 Subject: [PATCH] fix(CompositeBar): problem with not working onItemClick prop (#72) --- src/components/CompositeBar/CompositeBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CompositeBar/CompositeBar.tsx b/src/components/CompositeBar/CompositeBar.tsx index 77e551f..2d4c059 100644 --- a/src/components/CompositeBar/CompositeBar.tsx +++ b/src/components/CompositeBar/CompositeBar.tsx @@ -155,7 +155,7 @@ const CompositeBarView: FC = ({ item={item} onMouseEnter={onMouseEnterByIndex(itemIndex)} onMouseLeave={onMouseLeave} - onItemClick={onItemClickByIndex} + onItemClick={onItemClickByIndex(itemIndex)} compact={compact} collapseItems={collapseItems} enableTooltip={!multipleTooltip}