We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25ed124 commit 80a7524Copy full SHA for 80a7524
core/src/components/modal/gestures/sheet.ts
@@ -452,7 +452,15 @@ export const createSheetGesture = (
452
.onFinish(
453
() => {
454
if (shouldRemainOpen) {
455
- swapFooterVisibility('original');
+ /**
456
+ * If expandToScroll is disabled, we need to swap
457
+ * the footer visibility to the original, so if the modal
458
+ * is dismissed, the footer dismisses with the modal
459
+ * and doesn't stay on the screen after the modal is gone.
460
+ */
461
+ if (!expandToScroll) {
462
+ swapFooterVisibility('original');
463
+ }
464
/**
465
* Once the snapping animation completes,
466
* we need to reset the animation to go
0 commit comments