Skip to content

Commit 4ddcf52

Browse files
committed
feat: 移除startTransition
1 parent 60430c7 commit 4ddcf52

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Collapse.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ const Collapse = React.forwardRef<HTMLDivElement, CollapseProps>((props, ref) =>
7777
expandIcon,
7878
collapsible,
7979
destroyOnHidden,
80-
onItemClick:
81-
'startViewTransition' in document && typeof React.startTransition === 'function'
82-
? (key) => document.startViewTransition(() => onItemClick(key))
83-
: onItemClick,
80+
onItemClick,
8481
activeKey,
8582
classNames: customizeClassNames,
8683
styles,

0 commit comments

Comments
 (0)