Skip to content

Commit

Permalink
ListSwitch: make interactive logic consistent with ListSlider
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTrahearn-Qinetic committed Feb 6, 2025
1 parent c08c90e commit e05bbbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/listitems/core/ListSwitch.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ListItem {
property int valueTrue: 1
property int valueFalse: 0

interactive: true
interactive: (dataItem.uid === "" || dataItem.isValid)

content.children: [
Label {
Expand All @@ -33,8 +33,7 @@ ListItem {
Switch {
id: switchItem

enabled: root.clickable &&
(dataItem.uid === "" || dataItem.isValid)
enabled: root.clickable
checked: invertSourceValue ? dataItem.value === valueFalse : dataItem.value === valueTrue
checkable: false
onClicked: root.clicked()
Expand Down

0 comments on commit e05bbbb

Please sign in to comment.