touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #102971
[Bug 1496468] [NEW] ListItem doesn't emit onClicked after user has swiped to leading item and back
Public bug reported:
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.
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
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 {
- color: "white"
- onClicked: {
- console.log("Clicked: " + index)
- }
- Label {
- anchors.centerIn: parent
- text: index
- }
+ 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"
- }
- ]
- }
+ 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
+ "Clicked 3" should be printed on the console
Actual result:
- "Clicked 3" isn't printed due to onClicked never being emitted.
+ "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.
--
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/1496468
Title:
ListItem doesn't emit onClicked after user has swiped to leading item
and back
Status in ubuntu-ui-toolkit package in Ubuntu:
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1496468/+subscriptions
Follow ups