I have a dropdown whose dataset is something like...
const data = [{key:1, label: 'Houston Hobby Airport', value: 'HOU'}];
However, based on everything I've read, it seems like the value is being used as a label for the select dropdown, is there a way to use a label instead of the value?
IE. the dropdown would display "Houston Hobby Airport" as an option.
I have a dropdown whose dataset is something like...
However, based on everything I've read, it seems like the value is being used as a label for the select dropdown, is there a way to use a label instead of the value?
IE. the dropdown would display "Houston Hobby Airport" as an option.