We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3a872 commit 0c0b1fdCopy full SHA for 0c0b1fd
src/Overflow.tsx
@@ -71,7 +71,8 @@ function Overflow<ItemType = any>(
71
/**
72
* When is `responsive`, we will always render rest node to get the real width of it for calculation
73
*/
74
- const showRest = isResponsive || data.length > maxCount!;
+ const showRest =
75
+ isResponsive || (typeof maxCount === 'number' && data.length > maxCount);
76
77
const mergedData = useMemo(() => {
78
let items = data;
0 commit comments