Skip to content

MultiList showLoadMore WITH nestedField #2217

Open
@jorgeju4rez

Description

@jorgeju4rez

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",
 ]}}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions