Skip to content

Commit 6558417

Browse files
authored
fix: typo (#500)
classNames 中的 root 的值应该是字符串,而不是对象
1 parent 3a902d4 commit 6558417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface TooltipProps
3232
overlay: (() => React.ReactNode) | React.ReactNode;
3333
/** @deprecated Please use `styles={{ root: {} }}` */
3434
overlayStyle?: React.CSSProperties;
35-
/** @deprecated Please use `classNames={{ root: {} }}` */
35+
/** @deprecated Please use `classNames={{ root: '' }}` */
3636
overlayClassName?: string;
3737
getTooltipContainer?: (node: HTMLElement) => HTMLElement;
3838
destroyOnHidden?: boolean;

0 commit comments

Comments
 (0)