Skip to content

Commit

Permalink
wip Disable button
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Oct 17, 2024
1 parent fd1e47e commit 30e4314
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private fun CoreButton(
onClick: () -> Unit,
imageVector: ImageVector?,
) {
val isEnabled by remember { derivedStateOf { enabled() || showIndeterminateProgress() } }
val isEnabled by remember { derivedStateOf { enabled() && !showIndeterminateProgress() && progress == null } }
val buttonColors = style.buttonColors()

Button(
Expand Down

0 comments on commit 30e4314

Please sign in to comment.