hello all, I’m using the react-kotlin wrappers in ...
# javascript
j
hello all, I’m using the react-kotlin wrappers in my web project. I have a ‘select’ html element, but can’t seem to get the value out of the onChangeFunction event. Has anyone done this and can help me out?
b
Could you please provide code snippet or simple project with this problem?
c
This is how I would go about it
Copy code
select {

    onChange = { event -> setSelect(event.target.value) }

    defaultValue = "0"
    option {
        value = "0"
        disabled = true
        +"Pick an option"
    }
  option {
        value = "1"
        +"option 1"
    }
  option {
        value = "2"
        +"option 2"
    }
}