Skip to content

Commit

Permalink
Merge pull request #35281 from abzokhattab/fix-show-more-button
Browse files Browse the repository at this point in the history
fix show more button
  • Loading branch information
puneetlath authored Feb 1, 2024
2 parents c9f7ec3 + eb30b85 commit 33463c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/OptionsList/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type OptionsListProps = {
bounces?: boolean;

/** Custom content to display in the floating footer */
renderFooterContent?: () => JSX.Element;
renderFooterContent?: JSX.Element;

/** Whether to show a button pill instead of a standard tickbox */
shouldShowMultipleOptionSelectorAsButton?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class BaseOptionsSelector extends Component {
shouldPreventDefaultFocusOnSelectRow={this.props.shouldPreventDefaultFocusOnSelectRow}
nestedScrollEnabled={this.props.nestedScrollEnabled}
bounces={!this.props.shouldTextInputAppearBelowOptions || !this.props.shouldAllowScrollingChildren}
renderFooterContent={() =>
renderFooterContent={
shouldShowShowMoreButton && (
<ShowMoreButton
containerStyle={{...this.props.themeStyles.mt2, ...this.props.themeStyles.mb5}}
Expand Down

0 comments on commit 33463c2

Please sign in to comment.