Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiList showLoadMore WITH nestedField #2217

Open
jorgeju4rez opened this issue May 4, 2023 · 0 comments
Open

MultiList showLoadMore WITH nestedField #2217

jorgeju4rez opened this issue May 4, 2023 · 0 comments
Labels

Comments

@jorgeju4rez
Copy link

jorgeju4rez commented May 4, 2023

Affected Projects
React

Library Version: x.y.z
^4.0.0-rc.12

Describe the bug
When using the MultiList component in a React application with the nestedField and showLoadMore props, the component fails to render.

Expected behavior
The MultiList component should render correctly and display a "Load More" button to allow the user to load more items in the list.

Steps to reproduce

  • Use the MultiList component in a React application.
  • Set the nestedField prop to a nested field in the data source.
  • Set the showLoadMore prop to true.
  • Render the component.

Additional information
This issue seems to occur only when using both the nestedField and showLoadMore props together. When using either prop separately, the component renders correctly without any errors.

To Reproduce

<MultiList
 URLParams
 searchPlaceholder="Search by brands"
 componentId="brand"
 dataField="products.brand.keyword"
 nestedField="products"
 placeholder="Brands"
 size={10}
 showLoadMore
 react={{
 and: [
   "treeListSensor",
 ]}}
/>
@jorgeju4rez jorgeju4rez added the bug label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant