bug: ion-modal
does not reset breakpoint value on dismiss
#25245
Labels
ion-modal
does not reset breakpoint value on dismiss
#25245
Prerequisites
Ionic Framework Version
Current Behavior
When using inline an inline sheet modal, when the sheet modal is dismissed the breakpoint value remains as the value before it was dismissed.
This is problematic in situations where the sheet modal can be presented again, as the state of the modal will not be reflective of the visual state of the screen.
This will also distort the transition when you re-open the sheet modal and try to drag to a new breakpoint.
Expected Behavior
When the sheet modal is dismissed, the internal
currentBreakpoint
value should be set to theinitialBreakpoint
value. This way when the sheet is re-presented, the internal state will match the visual state.Steps to Reproduce
Following the Stackblitz example:
0.75
breakpoint.getCurrentBreakpoint()
value of theion-modal
reference it will be0.75
Code Reproduction URL
https://stackblitz.com/edit/mrg5um
Ionic Info
N/A
Additional Information
No response
The text was updated successfully, but these errors were encountered: