Skip to content

Commit 80a7524

Browse files
kumibrrthetaPC
andauthored
Update core/src/components/modal/gestures/sheet.ts
Co-authored-by: Maria Hutt <[email protected]>
1 parent 25ed124 commit 80a7524

File tree

1 file changed

+9
-1
lines changed
  • core/src/components/modal/gestures

1 file changed

+9
-1
lines changed

core/src/components/modal/gestures/sheet.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,15 @@ export const createSheetGesture = (
452452
.onFinish(
453453
() => {
454454
if (shouldRemainOpen) {
455-
swapFooterVisibility('original');
455+
/**
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+
}
456464
/**
457465
* Once the snapping animation completes,
458466
* we need to reset the animation to go

0 commit comments

Comments
 (0)