Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"dependencies": {
"@babel/runtime": "^8.0.0",
"@rc-component/resize-observer": "^1.0.1",
"@rc-component/util": "^1.11.1",
"@rc-component/util": "^1.13.0",
"clsx": "^2.1.1"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/Overflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { useState, useMemo, useCallback } from 'react';
import { clsx } from 'clsx';
import ResizeObserver from '@rc-component/resize-observer';
import { useLayoutEffect } from '@rc-component/util';
import { isReactRenderable, useLayoutEffect } from '@rc-component/util';
import Item from './Item';
import useEffectState, { useBatcher } from './hooks/useEffectState';
import type { ComponentType } from './RawItem';
Expand Down Expand Up @@ -401,7 +401,7 @@ function Overflow<ItemType = any>(
{...restProps}
>
{/* Prefix Node */}
{prefix && (
{isReactRenderable(prefix) && (
<Item
{...itemSharedProps}
responsive={isResponsive}
Expand All @@ -421,7 +421,7 @@ function Overflow<ItemType = any>(
{showRest ? restNode : null}

{/* Suffix Node */}
{suffix && (
{isReactRenderable(suffix) && (
Comment thread
coderabbitai[bot] marked this conversation as resolved.
<Item
{...itemSharedProps}
responsive={isResponsive}
Expand Down
Loading