bug: Swipeable Modals dismissed on click on Top
See original GitHub issueBug Report
Ionic version:
[x] 5.x
Current behavior:
When i open a Swipeable Modal on ios, it is possible to dismiss this with a single Tap on the small Space of the underlaying Page.
Expected behavior:
I don’t know if this is the expected behavior, but i think it should be, because it happens very fast and often without even knowing it. I expect to only be able to close the Modal via Swipe Gesture (or programmatically).
Other information:
Ionic info:
Ionic:
Ionic CLI : 6.2.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.0.5
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 8.3.25
@ionic/angular-toolkit : 2.2.0
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 53 other plugins)
Utility:
cordova-res : 0.10.0
native-run : 0.3.0
System:
Android SDK Tools : 25.2.3 (/Users/hanskrywalsky/Library/Android/sdk)
ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v12.16.1 (/usr/local/bin/node)
npm : 6.14.2
OS : macOS Catalina
Xcode : Xcode 11.3.1 Build version 11C504
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
bug: Swipeable Modals dismissed on click on Top ... - GitHub
Current behavior: When i open a Swipeable Modal on ios, it is possible to dismiss this with a single Tap on the small...
Read more >Dismissing a sheet leads to broken button - Apple Developer
After closing this sheet view programmatically the plus button of the first view won't react anymore. Is this an iOS bug or is...
Read more >iOS 13 Modals - Calling swipe dismissal programmatically
Is this a bug or is there a way I can programmatically call whatever the "swipe" dismiss is so I can detect all...
Read more >ion-modal: Ionic Mobile App Custom Modal API Component
ion-modal is a dialog that appears on top of mobile app content, and must be dismissed before interaction resumes. Learn more about custom...
Read more >How to disable interactive swipe to dismiss for view controllers
Fortunately, UIKit has a dedicated property that deactivates the swipe to dismiss behavior: isModalInPresentation .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/20802 and will be available in an upcoming release of Ionic Framework.
Hey @liamdebeasi . Yeah seems to work, it doesn’t dismiss anymore on tap. ☺️ But i noticed a second thing: Sometimes when i drag the Modal down and tap on the Backdrop while dragging the Modal gets stuck at the current Position. Sometimes the Modal goes to top again. I don’t know what the behavior he should be, but i tested in a native iOS App and there nothing happens on a second backdrop click while dragging, i can just go on dragging.
I just tested with
v5.0.5
again and it is very very buggy there too when you drag a Modal down and while this tap on the Background. Should i open a new Issue or should be continue here?