How the get the option label from a select
So, I've got a
Say, I've got
When the user selects
My
and my
I've tried using
How can I get
Select and I want to fill a TextInput with the value selected. Not the value of the option, but the label.Say, I've got
When the user selects
something I want to fill a TextInput with something My
Select looks like this:and my
TextInput:I've tried using
afterStateUpdated injecting the state, the component, Get, Set, but the only thing I can get is the option value (1 in this example).How can I get
something from the selected option? Thanks in advance.