I am trying to use DropdownMenu in a KMP project u...
# compose-ios
a
I am trying to use DropdownMenu in a KMP project using material3-1.5.0. The dropdown expanded menu is shown over a native map view (Apple/Google) - it works fine on Android, but on iOS the items are shown correctly but are not clickable - if the dropdown options are only partly overlaying the map on iOS the options outside the map is clickable, am I missing something obvious? this is a short example:
Copy code
var expanded by remember { mutableStateOf(false) }
    Box(
        modifier = modifier.fillMaxSize()
    ) {
        NativeMapView(
            modifier = Modifier.fillMaxSize(),
            parentScrollEnableState = verticalScrollEnableState
        )

        Box(modifier = Modifier.align(Alignment.BottomStart).padding(bottom = 24.dp)) {
            Text(
                "Show options",
                modifier = Modifier.padding(8.dp).clickable(onClick = { expanded = true })
            )
            DropdownMenu(
                expanded = expanded,
                onDismissRequest = { expanded = false },
            ) {
                (1..2).forEach { option ->
                    DropdownMenuItem(
                        onClick = {
                            expanded = false
                        },
                        text = {
                            Text(text = "Your option: $option")
                        }
                    )
                }
            }
        }
    }