Skip to content

Commit

Permalink
🐛 fixed bug where content wasn't presented inside modal
Browse files Browse the repository at this point in the history
  • Loading branch information
aviadhahami committed Sep 12, 2016
1 parent b08001a commit f9efe07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PopupDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ class PopupDialog extends Component {
openDialog(onOpened) {
if (onOpened && typeof onOpened == 'function') {
this.dialog.open(onOpened);
}else{
} else {
this.dialog.open();
}
}

closeDialog(onClosed) {
if (onClosed && typeof onClosed == 'function') {
this.dialog.closed(onClosed);
}else{
} else {
this.dialog.closed();
}
}
Expand All @@ -50,6 +50,7 @@ class PopupDialog extends Component {
{...this.props}
>
{title}
{this.props.children} // Critical!
</Dialog>
);
}
Expand Down

0 comments on commit f9efe07

Please sign in to comment.