Ionic dismiss modal when click outside of element

I made a modal with following code.

const myModal = this.modalCtrl.create('DetailpopupPage', mydata);

    myModal.present({animate: false});

I need to dismiss the modal when I click outside of the element “div.wraper”.
How can I do?

Thank you.

const myModal = this.modalCtrl.create(
‘DetailpopupPage’,
mydata,
{enableBackdropDismiss: true}
);