Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function BottomSheetNavigationContainer( { children, animate, main, theme } ) {
};

const setHeight = useCallback(
( height, layout ) => {
( height ) => {
// The screen is fullHeight or changing from fullScreen to the default mode
if (
( typeof currentHeight === 'string' &&
Expand All @@ -93,8 +93,8 @@ function BottomSheetNavigationContainer( { children, animate, main, theme } ) {
return;
}

if ( currentHeight !== height && height > 1 ) {
if ( animate && layout && currentHeight === 1 ) {
if ( height > 1 ) {
if ( currentHeight === 1 ) {
setCurrentHeight( height );
} else if ( animate ) {
performLayoutAnimation( ANIMATION_DURATION );
Expand Down