'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() { render() {
if(this.props.isOpen) { if(this.props.isOpen) {
return <AriaModal return <AriaModal
titleText={this.props.title} titleText={this.props.title}
underlayClickExits={this.props.underlayClickExits} underlayClickExits={this.props.underlayClickExits}
underlayProps={this.props.underlayProps} underlayProps={this.props.underlayProps}
getApplicationNode={this.getApplicationNode}
data-wd-key={this.props["data-wd-key"]} data-wd-key={this.props["data-wd-key"]}
verticallyCenter={true} verticallyCenter={true}
onExit={this.onClose} onExit={this.onClose}