'getApplicationNode' doesn't appear to be required as the modal is already a dialog

This commit is contained in:
orangemug 2020-06-10 18:17:25 +01:00
parent bfada7cace
commit 0279daf7bd

View file

@ -32,17 +32,12 @@ export default class Modal extends React.Component {
});
}
getApplicationNode() {
return document.getElementById('app');
}
render() {
if(this.props.isOpen) {
return <AriaModal
titleText={this.props.title}
underlayClickExits={this.props.underlayClickExits}
underlayProps={this.props.underlayProps}
getApplicationNode={this.getApplicationNode}
data-wd-key={this.props["data-wd-key"]}
verticallyCenter={true}
onExit={this.onClose}