From b1f77071ff65edb6465c51506e76b72fddefe820 Mon Sep 17 00:00:00 2001 From: d3m1d0v <d3m1d0v@yandex-team.ru> Date: Tue, 31 Oct 2023 17:33:11 +0300 Subject: [PATCH] fix(toolbar): correct calc of actions to show in presence of hiddenActions --- src/toolbar/flexible.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbar/flexible.tsx b/src/toolbar/flexible.tsx index 3918e29f..4bc83eb8 100644 --- a/src/toolbar/flexible.tsx +++ b/src/toolbar/flexible.tsx @@ -48,7 +48,7 @@ export function shrinkToolbarData<E>({ if ( hideAllNext || - (isLastElement(i, j) + (!hiddenActions.length && isLastElement(i, j) ? // Hide last element only if it doesn't fit currentWidth > availableWidth : // Hide other elements if they don't fit counting dots button width