Closed jdupuis closed 2 years ago
Thanks for the issue. Here is a dev build with a proposed fix if you are interested in testing:
npm install @ionic/angular@6.2.5-dev.11661433365.198ed930
Thanks for the fix @liamdebeasi, it works with the dev build ! 👍
Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic-framework/pull/25821, and a fix will be available in an upcoming release of Ionic Framework.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
Current Behavior
In Ionic 6.2.0+ (Angular), it's impossible to use the handleBehavior when a modal is created with the ModalController because handleBehavior doesn't exist in type ModalOptions.
Expected Behavior
No errors on app build when the property handleBehavior is used on modal creation with the Modal Controller.
To solve that, add the property handleBehavior in the ModalOptions interface in dist/types/components/modal/modal-interface.d.ts.
Thanks !
Steps to Reproduce
ionic g component components/TestSheetModalComponent
ionic g page pages/TestSheetModalPage
@Component({ selector: 'app-test-sheet-modal-page', templateUrl: './test-sheet-modal-page.page.html', styleUrls: ['./test-sheet-modal-page.page.scss'], }) export class TestSheetModalPagePage implements OnInit {
constructor( private modalCtrl: ModalController ) { }
async ngOnInit() { const modal = await this.modalCtrl.create({ breakpoints: [0.25, 0.75], initialBreakpoint: 0.25, backdropBreakpoint: 0.5, component: TestSheetModalComponent, handleBehavior: 'cycle' }); await modal.present(); }
}