bento
bento copied to clipboard
Crash when reordering ListComponent with dividers.
There is a crash if the user attempts to reorder a ListComponent
with dividers. This is because the ListComponent
implements onItemsMoved
and automatically moves the data in mData
. The size of mData
will always be (about) half of the total size of the component because of the dividers.
I believe the solution to this will be checking if dividers are enabled, and if so, dividing them by 2 when reordering the data.
From a design perspective, I would remove the divider from the ListComponent
to be honest.