ListItem doesn't emit onClicked after user has swiped to leading item and back

Bug #1496468 reported by Michael Sheldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Zoltan Balogh
ubuntu-ui-toolkit (Ubuntu)
Fix Released
High
Zsombor Egri

Bug Description

Steps to reproduce:

1) Run the following QML from the console:

import QtQuick 2.4
import Ubuntu.Components 1.3

MainView {
    Page {
        ListView {
            anchors.fill: parent
            model: 5
            delegate: ListItem {
                onClicked: {
                    console.log("Clicked: " + index)
                }
                Label {
                    anchors.centerIn: parent
                    text: index
                }

                leadingActions: ListItemActions {
                    actions: [
                        Action {
                            objectName: "leadingAction.delete"
                            iconName: "delete"
                        }
                    ]
                }

            }
        }
    }
}

2) Click on item 2, note that "Clicked 2" is printed to the console

3) Swipe right on item 3 to show the delete action

4) Swipe left to hide the delete action

5) Click on item 3

Expected result:

 "Clicked 3" should be printed on the console

Actual result:

 "Clicked 3" isn't printed due to onClicked never being emitted.

Note that if instead of swiping left to hide the delete action you tap on the item to hide it the onClicked signal will work as expected.

Related branches

description: updated
Revision history for this message
Bill Filler (bfiller) wrote :

this is affecting the new browser downloads page and other apps

Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → High
Changed in canonical-devices-system-image:
milestone: none → ww40-2015
assignee: nobody → Zoltan Balogh (bzoltan)
importance: Undecided → High
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → In Progress
assignee: nobody → Zsombor Egri (zsombi)
Changed in canonical-devices-system-image:
status: New → In Progress
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 1.3.1688+15.10.20151018.1-0ubuntu1

---------------
ubuntu-ui-toolkit (1.3.1688+15.10.20151018.1-0ubuntu1) wily; urgency=medium

  [ Tim Peeters ]
  * Add delegate property to ActionBar.
  * Introduce PageHeader component.
  * Add header property to Page.
    Fixes LP: #1248898, LP: #1350893, LP: #1445016, LP: #1492328
  * Use the correct navigation overflow icon in PageHeader.

  [ Loïc Molinari ]
  * Fixed OpenGL ES 2 mipmap fallback. OpenGL ES 2 doesn't support
    GL_TEXTURE_MAX_LEVEL by default, it is only available via an extension. It
    was working on the devices where this extension is available but not on
    the emulator. Fixes LP: #1505221.

  [ Christian Dywan ]
  * Handle incubateObject returning null in PageWrapperUtils.
    Fixes LP: #1505197
  * Add module header to PageWrapperUtils.

  [ Zoltan Balogh ]
  * Improve test plan
    - Ad -q parameter to provision the device for normal use with a PPA
    - Fix up the camera and clock app on the device to acces services
    - Replace phablet tools with manual enabling writable image
    - Fix PPA pin up for staging and other regular PPAs.

  [ Zsombor Egri ]
  * Emit Dropped event for live ListItem drag'n'drop. Fixes LP: #1500118.

  [ Timo Jyrinki ]
  * Build dep on libinput-dev and libxkbcommon-dev (LP: #1437192).

  [ Benjamon Zeller ]
  * Remove unused variables.

  [ CI Train Bot ]
  * No-change rebuild.

 -- Zoltan Balogh <email address hidden> Sun, 18 Oct 2015 03:47:27 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.