Skip to content

Commit f1ac8e5

Browse files
committed
Update TitleAndValueRow to respect selectable fields
1 parent fd2bf6a commit f1ac8e5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/SwiftUI Components/TitleAndValueRow.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ struct TitleAndValueRow: View {
1212

1313
var body: some View {
1414
Button(action: {
15-
guard selectable else {
16-
return
17-
}
1815
action()
1916
}, label: {
2017
HStack {
@@ -35,6 +32,7 @@ struct TitleAndValueRow: View {
3532
}
3633
.contentShape(Rectangle())
3734
})
35+
.disabled(!selectable)
3836
.frame(minHeight: Constants.minHeight)
3937
.padding(.horizontal, Constants.horizontalPadding)
4038
}

0 commit comments

Comments
 (0)