Skip to content

Commit f91113d

Browse files
authored
fix(toolbar): correct calc of actions to show in presence of hiddenActions (#150)
1 parent 2189de1 commit f91113d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/toolbar/flexible.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function shrinkToolbarData<E>({
4848

4949
if (
5050
hideAllNext ||
51-
(isLastElement(i, j)
51+
(!hiddenActions.length && isLastElement(i, j)
5252
? // Hide last element only if it doesn't fit
5353
currentWidth > availableWidth
5454
: // Hide other elements if they don't fit counting dots button width

0 commit comments

Comments
 (0)