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({ 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