Tomáš Hubálek
06/09/2021, 9:21 AMimport org.jetbrains.compose.web.dom.Input
...
Input(attrs = {
onInput {
console.log("New value is", it.nativeEvent.target.asDynamic().value as String))
}
attr("type", "email")
attr("autocomplete", "email")
}, value = value)
It works fine when I'm typing. But when I use autocomplete, then app crashes with ClassCastException at this line:Tomáš Hubálek
06/09/2021, 9:22 AMAkif Abasov [JB]
06/09/2021, 9:24 AMTomáš Hubálek
06/09/2021, 9:25 AMAkif Abasov [JB]
06/09/2021, 9:26 AMTomáš Hubálek
06/09/2021, 9:27 AMAkif Abasov [JB]
06/09/2021, 9:29 AMDomSideEffect
, you will have element there and you can call addEventListener
there (it’s raw browser API)Tomáš Hubálek
06/09/2021, 9:37 AMOleksandr Karpovich [JB]
06/09/2021, 10:52 AM