In Jetpack Compose, how can I disable ripple effect (or adjust it) when clicking on DropdownMenu
(and DropdownMenuItem
also)
I tried using Modifier.clickable
with indication = null
but it didn’t work:
DropdownMenu(
expanded = expanded,
onDismissRequest = { expanded = false },
modifier = Modifier
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = null,
onClick = { }
)
)
Do you have any solutions?