Can anyone see why `mergeDescendants = true` does ...
# compose
j
Can anyone see why
mergeDescendants = true
does not work in the snippet below? VO reads both the RadioButton and Text.
Copy code
Row(
    modifier = Modifier
        .fillMaxWidth()
        .height(48.dp).semantics(mergeDescendants = true) {},
    verticalAlignment = Alignment.CenterVertically
) {
    val radioButtonClickHandler = { currentOptionSelection.value = option }
    
    RadioButton(
        modifier = Modifier
            .padding(start = 24.dp)
            .size(20.dp)
            .semantics { contentDescription = option.displayName },
        selected = currentOptionSelection.value == option,
        colors = RadioButtonDefaults.colors(
            unselectedColor = gj_green_500,
            selectedColor = gj_green_500
        ),
        onClick = radioButtonClickHandler
    )
    Spacer(modifier = Modifier.width(24.dp))
    Text(
        modifier = Modifier
            .wrapContentSize()
            .clickable(onClick = radioButtonClickHandler),
        text = option.displayName
    )
}