Enable confirmButton only when needed to respond to user input (#8848)
* Enable `confirmButton` when appropriate * Show error in dialog instead * Follow M3 guidelines
This commit is contained in:
@@ -42,6 +42,7 @@ fun DownloadCustomAmountDialog(
|
||||
},
|
||||
confirmButton = {
|
||||
TextButton(
|
||||
enabled = amount != 0,
|
||||
onClick = {
|
||||
onDismissRequest()
|
||||
onConfirm(amount.coerceIn(0, maxAmount))
|
||||
|
||||
Reference in New Issue
Block a user