Skip to content

Commit 4951d13

Browse files
authored
docs(modal): clarify swipeToClose migration (#2839)
1 parent ef3836e commit 4951d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/updating/7-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ iOS >=14
102102

103103
### Modal
104104

105-
1. Remove any usage of the `swipeToClose` property. Use the [canDismiss](https://ionicframework.com/docs/api/modal#preventing-a-modal-from-dismissing) property to control when a modal can dismiss.
105+
1. Remove any usage of the `swipeToClose` property. Card modals are swipeable by default, so you can remove `swipeToClose` if you want your card modal to remain swipeable. Use the [canDismiss](https://ionicframework.com/docs/api/modal#preventing-a-modal-from-dismissing) property if you want to prevent a modal from dismissing.
106106
2. Remove any code that sets the `canDismiss` property to `undefined`. The `canDismiss` property now defaults to `true`, so this code is no longer needed.
107107

108108
### Picker

0 commit comments

Comments
 (0)