ionic-framework: feat: sheet style modal breakpoints should be reactive
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
The breakpoints of a sheet style modal should be reactive
Describe the Use Case
Our Sheet has some breakpoints that should be only available in a specific state
Describe Preferred Solution
The best solution would be a method setBreakpoint which takes the new breakpoints array and a new initalBreakpoint that is used only if the current breakpoint is not included in the new array.
Describe Alternatives
Just be able to set this.modal.breakpoints = [...]. The users then has to check by their self to maybe move to another breakpoint manually (via #24648)
Related Code
No response
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (16 by maintainers)
Thanks. Can you tell me more about your use case in https://github.com/ionic-team/ionic-framework/issues/24752#issuecomment-1034027495? I’m wondering if https://github.com/ionic-team/ionic-framework/issues/22297 with a card modal would be a better UI for this.
Sheet modals are very dynamic/temporary, so restricting both of those seem to go against what the sheet is designed for.