Skip to content

Commit

Permalink
Fixed #316
Browse files Browse the repository at this point in the history
  • Loading branch information
Merve7 committed Feb 28, 2018
1 parent b8cdffe commit b9bcb81
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,17 @@ export class Dialog extends Component {
}

moveOnTop() {
this.container.style.zIndex = String(DomHandler.generateZIndex());
let maskIndex = false;
for(let prop in this.props.children){
if(this.props.children[prop].props !== undefined){
let child = this.props.children[prop].props.appendTo;
if(child !==null || child !== undefined) {
maskIndex = true;
}
}
}
if(!maskIndex)
this.container.style.zIndex = String(DomHandler.generateZIndex());
}

onCloseMouseDown(event) {
Expand Down

0 comments on commit b9bcb81

Please sign in to comment.