mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
lift className from Button[disabled] in Tooltip, fix #5270
This commit is contained in:
parent
7bc2b1dbff
commit
06b17fd553
@ -117,8 +117,15 @@ export default class Tooltip extends React.Component<TooltipProps, any> {
|
||||
...omited,
|
||||
pointerEvents: 'none',
|
||||
};
|
||||
const child = cloneElement(element, { style: buttonStyle });
|
||||
return <span style={spanStyle}>{child}</span>;
|
||||
const child = cloneElement(element, {
|
||||
style: buttonStyle,
|
||||
className: null,
|
||||
});
|
||||
return (
|
||||
<span style={spanStyle} className={element.props.className}>
|
||||
{child}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user