File tree Expand file tree Collapse file tree
core/designsystem/src/main/java/com/neki/android/core/designsystem/modifier Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import androidx.compose.ui.node.SemanticsModifierNode
2323import androidx.compose.ui.platform.debugInspectorInfo
2424import androidx.compose.ui.semantics.Role
2525import androidx.compose.ui.semantics.SemanticsPropertyReceiver
26+ import androidx.compose.ui.semantics.disabled
2627import androidx.compose.ui.semantics.onClick
2728import androidx.compose.ui.semantics.role
2829import androidx.compose.ui.unit.IntSize
@@ -230,7 +231,11 @@ private class ClickableSingleNode(
230231
231232 override fun SemanticsPropertyReceiver.applySemantics () {
232233 this @ClickableSingleNode.role?.let { this .role = it }
233- onClick(label = onClickLabel, action = { processClick(); true })
234+ onClick(
235+ label = onClickLabel,
236+ action = { processClick(); true }
237+ )
238+ if (! enabled) { disabled() }
234239 }
235240
236241 fun update (
You can’t perform that action at this time.
0 commit comments