fix: Tooltip in Upload components location error (#24001)

This commit is contained in:
mraiguo 2020-05-09 18:58:44 +08:00 committed by GitHub
parent 338733d70f
commit 28f71921ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,7 +313,13 @@ export default class UploadList extends React.Component<UploadListProps, any> {
});
return (
<div key={file.uid} className={listContainerNameClass}>
{file.status === 'error' ? <Tooltip title={message}>{dom}</Tooltip> : <span>{dom}</span>}
{file.status === 'error' ? (
<Tooltip title={message} getPopupContainer={node => node.parentNode as HTMLElement}>
{dom}
</Tooltip>
) : (
<span>{dom}</span>
)}
</div>
);
});