jakezatecky / react-dual-listbox

A feature-rich dual listbox for React.
https://jakezatecky.github.io/react-dual-listbox/
MIT License
110 stars 58 forks source link

Trying to remove a selected value from a filtered list fails when simpleValue is false and preserveSelectOrder is true #142

Closed Holay closed 1 year ago

Holay commented 3 years ago

Describe the bug When simpleValue is false and I try to remove a value from a filtered list, it removed the value in that position for the unfiltered list, meaning trying to remove the first result of a filtered list, actually removes the first result of the unfiltered list

Reproduction steps CodeSanbox

Expected behavior Option two should have been removed from the selection

jakezatecky commented 3 years ago

Thanks for the reproduction case.

Holay commented 3 years ago

Any updates on this issue?

jakezatecky commented 1 year ago

Notable that this failure in behavior also requires preserveSelectOrder to be set.