Merge pull request #505 from RickCole21/master

调整一下Drawer下发的popoverContainer
This commit is contained in:
liaoxuezhi 2020-03-20 17:02:11 +08:00 committed by GitHub
commit 742355daa2

View File

@ -254,7 +254,9 @@ export default class Drawer extends React.Component<DrawerProps, object> {
@autobind
getPopOverContainer() {
return findDOMNode(this);
return (findDOMNode(this) as HTMLElement).querySelector(
`.${this.props.classPrefix}Drawer-content`
);
}
renderBody(body: SchemaNode, key?: any): React.ReactNode {