← Back to team overview

touch-packages team mailing list archive

[Bug 1498683] [NEW] ItemSelector breaks when setting selectedIndex by interaction and programmatically

 

Public bug reported:

The ItemSelector breaks when mixing user input and controlling it
programmatically.

Steps to reproduce:

* run the attached code snippet
* click the itemselector to expand it
* select any item to make it collapse (doesn't matter which one)
* press one of the buttons to change the selectedIndex to something else than it is

=> expected:
ItemSelector updates to show the new selected item

=> actual:
ItemSelector animates old selected out but fails to bring the newly selected on it. If it is expanded now, the selected item is missing the text.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "itemselector.qml"
   https://bugs.launchpad.net/bugs/1498683/+attachment/4471669/+files/itemselector.qml

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1498683

Title:
  ItemSelector breaks when setting selectedIndex by interaction and
  programmatically

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  The ItemSelector breaks when mixing user input and controlling it
  programmatically.

  Steps to reproduce:

  * run the attached code snippet
  * click the itemselector to expand it
  * select any item to make it collapse (doesn't matter which one)
  * press one of the buttons to change the selectedIndex to something else than it is

  => expected:
  ItemSelector updates to show the new selected item

  => actual:
  ItemSelector animates old selected out but fails to bring the newly selected on it. If it is expanded now, the selected item is missing the text.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1498683/+subscriptions