reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

MultiList showLoadMore WITH nestedField

Open jorgeju4rez opened this issue 2 years ago • 0 comments

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 avatar May 04 '23 15:05 jorgeju4rez