Hi there, I have implemented a modal that takes half of the screen and I would like to enable the backdrop dismiss. If the user clicks outside the modal, it dismiss it. But the options doesnt work. Probably because I change the position of the modal like this :
modal-filters.ion-page.show-page { top: 40vh; }
and the options :
let modal = this.modalCtrl.create(FiltersModal,{}, {showBackdrop: true, enableBackdropDismiss: true});
Hello @mthomka, thanks for your reply. I checked your solution and it worked on my app now. But Iām experimenting some strange behavior. There seems to have a transition applied to the modal (only visible when I build then run on my phone) at the opening, and I loose the ābottom-upā opening. Did you encountered the same problem ?
PS : Why did you replace the ā< ion-content >ā of the HTML modal by "< div class=āmanager-sheet-contentā > "?
hi @Jibe - what platform is the phone you tried it on? i tested it only on Android so far, but i have the bottom-up transition when opening the modal. Iāve experienced something similar in the past , if constructor of your Filters component is executing some heavy code , on slower devices this might cause the transition not to show correctly or at all.
As for the HTML - the content i needed in the modal was really simple, i chose a lightweight approach with a div only with a pre-set height
Hey, as renderer is deprecated, i was trying to use renderer2 but for android/ios the bottomsheet is covering complete page.
Could you please help?
Thanks In advance