Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.5.4
Description
When inserting list elements at the beginning of the model, currentItem and currentIndex are not updated, so we have an invalid state where currentItem is still pointing to previous one, but as we are adding elements at the beginning, both properties should be updated.
Redefining the currentIndex after updating the model, fixes the issue. The small attached QML example shows the issue and the workaround to fix it.