Skip to content

Commit 597141b

Browse files
committed
Fix hideScrollToEndButton
1 parent 7b10338 commit 597141b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/api/src/normalizeStyleOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ export default function normalizeStyleOptions({
110110

111111
// Only set if the "scrollToEndButtonBehavior" is not set.
112112
// If it has been set, the developer should know the older "hideScrollToEndButton" option is deprecated.
113-
filledOptions.scrollToEndButtonBehavior = options.scrollToEndButtonBehavior || false;
113+
filledOptions.scrollToEndButtonBehavior =
114+
typeof options.scrollToEndButtonBehavior === 'undefined' ? false : options.scrollToEndButtonBehavior;
114115
filledOptions.hideScrollToEndButton = undefined;
115116
}
116117

0 commit comments

Comments
 (0)