Hmm, Modifier.clickable() doesn;t seem to work on ...
# compose-desktop
b
Hmm, Modifier.clickable() doesn;t seem to work on TextField
Copy code
TextField(
      value = value,
      onValueChange = {},
      readOnly = true,
      modifier = Modifier.clickable(role = Role.Button, onClick = {
        expanded = !expanded
      }),
      trailingIcon = {
        Icon(
          imageVector = if (expanded) Icons.Default.KeyboardArrowUp else Icons.Default.KeyboardArrowDown,
          contentDescription = "Localized description")
      }
    )
Am I doing something wrong?
g
You can cover it with a box of the same height and width then make it clickable. Take a look at the link I sent for the Dropdownbox example. There's a couple places where I'm doing it there.
b
Yeah, that worked