Open Ionic Datepicker popup in a modal

Hi every one.
i have a modal that there is ionic datepicker on it and its type is popup (not modal). but when i open popup in modal the backdrop of modal does not work and if the user click on modal except the popup area .his click would execute and go to the page of before modal but at this page clicks dosent take effect so can anyone help?
Thanks in advance for your help