Skip to content

Commit

Permalink
Merge pull request #41 from thecodelabnl/master
Browse files Browse the repository at this point in the history
Bugfix, fixes error when modal closes without title
  • Loading branch information
davecoffin authored Oct 22, 2018
2 parents fa9bbad + bc52ca6 commit 7c98861
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/modal-datetimepicker.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,17 @@ export class ModalDatetimepicker {
0,
320
);
titleLabel.transform = CGAffineTransformMakeScale(0.8, 0.8);
titleLabel.alpha = 0;
if (titleLabel) {
titleLabel.transform = CGAffineTransformMakeScale(0.8, 0.8);
titleLabel.alpha = 0;
}
},
() => {
effectView.removeFromSuperview();
bottomContentContainer.removeFromSuperview();
titleLabel.removeFromSuperview();
if (titleLabel) {
titleLabel.removeFromSuperview();
}
myResolve(response);
}
);
Expand Down

0 comments on commit 7c98861

Please sign in to comment.