Closed myt-sheila closed 1 year ago
Hi, if you just need the key when I examined SelectList.tsx, I saw this structure and this is how I solved my own problem.
if(save === 'value'){ setSelected(value); }else{ setSelected(key) }
You can get the key when you replace the save props with any value other than value. If I have free time I can work on capturing both values. Good work.
Both key and value would be great!
Approved for implementation
Hello! Can I ask how can I capture both the key and value? Thank you! 🙏