You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A ListView in the UI displays a Vec<DiscrChannel>. When clicking on any row, the is-selected property of the corresponding DiscrChannel element toggles.
However, when I sort the model by the is-inversed field, toggling the is-selected property causes the model to behave as if it is being filtered by both fields (is-inversed and is-selected). This behavior does not occur when sorting by non-boolean fields (e.g., id), which works correctly and does not break the list.
After further observation, I realized that the issue is not related to boolean fields specifically. During sorting by any field, elements with the same value are additionally sorted by the is-selected property every time its value changes
I tried to fix this, but I couldn't quite figure out a good way. Last attempt was an almost brute-force check with is_sorted_by() on the mapping, in an attempt to short-cut row changes that shouldn't affect the sort order, but ALAS no luck.
Implementation wise, I think this affects Rust, C++, as well as future JavaScript and Python models.
Bug Description
I have a structure DiscrChannel defined as follows:
A
ListView
in the UI displays aVec<DiscrChannel>
. When clicking on any row, theis-selected
property of the correspondingDiscrChannel
element toggles.However, when I sort the model by the
is-inversed
field, toggling theis-selected
property causes the model to behave as if it is being filtered by both fields (is-inversed
andis-selected
). This behavior does not occur when sorting by non-boolean fields (e.g., id), which works correctly and does not break the list.Reproducible Code (if applicable)
Environment Details
Product Impact
No response
The text was updated successfully, but these errors were encountered: