Merge pull request #16195 from swillis12/Fix-tooltip-Type

Fix className prop issue when using Tooltip
This commit is contained in:
偏右 2019-04-26 16:12:09 +08:00 committed by GitHub
commit e01ba57332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ const splitObject = (obj: any, keys: string[]) => {
return { picked, omitted };
};
class Tooltip extends React.Component<TooltipProps, any> {
class Tooltip extends React.Component<TooltipProps & React.HTMLAttributes<HTMLElement>, any> {
static defaultProps = {
placement: 'top' as TooltipPlacement,
transitionName: 'zoom-big-fast',