bug: sheet modal backdrop animation is incorrect when backdropBreakpoint is 1
See original GitHub issuePrerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
Current Behavior
When using a Sheet Style Modal with backdropBreakpoint: 1
the backdrop is buggy when the modal snaps back:
Expected Behavior
The backdrop should not be shown here of course
Steps to Reproduce
See attached Repo. Just drag the sheet down and release it
Code Reproduction URL
https://github.com/EinfachHans/ionic-sheet-modal-issue
Ionic Info
Ionic:
Ionic CLI : 6.19.1 (/Users/hans/.nvm/versions/node/v16.14.2/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 6.1.8 @angular-devkit/build-angular : 13.2.6 @angular-devkit/schematics : 13.2.6 @angular/cli : 13.2.6 @ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 3.5.1 @capacitor/android : not installed @capacitor/core : 3.5.1 @capacitor/ios : not installed
Utility:
cordova-res (update available: 0.15.4) : 0.15.1 native-run : 1.6.0
System:
NodeJS : v16.14.2 (/Users/hans/.nvm/versions/node/v16.14.2/bin/node) npm : 8.6.0 OS : macOS Monterey
Additional Information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
@sean-perkins works 😊
Thanks for the added detail! Can you test with this dev-build and let me know if the problem is resolved:
Our calculation for the animation was evaluating to
NaN
, since1 / 1 - backdropBreakpoint
becomesInfinity
.