Sam
06/11/2021, 9:10 PMInput(type = InputType.Text, attrs = {
onInput {
console.log(it.nativeEvent.target.asDynamic().value)
}
})
Is there a more elegant/safe way of doing it (alternative to WrappedInputEvent.nativeEvent.target.asDynamic().value
)?[JB] Shagen
06/11/2021, 10:24 PMhfhbd
06/12/2021, 2:01 AMtarget
to HTMLInputElement, which has the typed value
attribute. In theory!, this cast is save, as every event has a target attribute, and for this handler, the target should always be a HTMLInputElement