Closed MrLightful closed 7 months ago
@deep-mindinventory?
@mi-raj04 please consider merging this. It is really important. The search feature is otherwise unusable.
@pratikkansaramind @deep-mindinventory can you please consider releasing? It's been merged for months now, but still isn't in the release.
@abrarmalekji345?
@romatallinn Ok will do Asap
Closes #16
This PR replaces the parameter in
ListItemBuilder
function withSelectedListItem
, instead of integer index.The reason is that if the search is used, it produces a subset list that has no longer valid indexes for matching it with the original list. So it's impossible to customize the rendering of the items for searched items.
So as we replace an arbitrary index with
SelectedListItem
, we now haveSelectedListItem.value
which can be used to match the item in the original list, and thus use this data to render a custom widget.The change can be considered breaking, but it is absolutely crucial, so to make it work with the search.