https://kotlinlang.org logo
#compose
Title
# compose
s

Simone Summo

02/18/2021, 3:35 PM
Hi all, I have made a custom composable for a Searchbar that takes as input a
query
and an
onValueChange: (String?) -> Unit
. The idea is that when I have the
onValueChange
with the string as null the UI is different and the TextField is empty, but I get an error when I call my onValueChange inside the clickable of the close icon. The error I get:
java.lang.AssertionError: org.jetbrains.kotlin.ir.expressions.impl.IrCallImpl@63ae5d17: No such type argument slot: 1
j

jim

02/18/2021, 4:37 PM
Looks like a bug. Please file an issue with a minimal repro at https://issuetracker.google.com/issues?q=componentid:612128
s

Shakil Karim

02/18/2021, 4:45 PM
I also notice a weird issue on alpha-12 regarding BasicTextField with TextFieldValue variant, it doesn't update the first character.
2 Views