From 6293fe452f54c3f5d2ac332642b4c369bc768c92 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Thu, 29 Jul 2021 21:38:43 +0100 Subject: [PATCH] refactor: updated animateOnMount default value to true --- src/components/bottomSheet/constants.ts | 2 +- src/components/bottomSheet/types.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/bottomSheet/constants.ts b/src/components/bottomSheet/constants.ts index f43cdf33b..b9a9f0374 100644 --- a/src/components/bottomSheet/constants.ts +++ b/src/components/bottomSheet/constants.ts @@ -17,7 +17,7 @@ const DEFAULT_ENABLE_CONTENT_PANNING_GESTURE = true; const DEFAULT_ENABLE_HANDLE_PANNING_GESTURE = true; const DEFAULT_ENABLE_OVER_DRAG = true; const DEFAULT_ENABLE_PAN_DOWN_TO_CLOSE = false; -const DEFAULT_ANIMATE_ON_MOUNT = false; +const DEFAULT_ANIMATE_ON_MOUNT = true; // keyboard const DEFAULT_KEYBOARD_BEHAVIOR = KEYBOARD_BEHAVIOR.interactive; diff --git a/src/components/bottomSheet/types.d.ts b/src/components/bottomSheet/types.d.ts index 6be5ac919..3bffd3add 100644 --- a/src/components/bottomSheet/types.d.ts +++ b/src/components/bottomSheet/types.d.ts @@ -82,7 +82,7 @@ export interface BottomSheetProps /** * To start the sheet closed and snap to initial index when it's mounted. * @type boolean - * @default false + * @default true */ animateOnMount?: boolean; //#endregion