good_kind
KPCKevin Powell - Community
•Created by good_kind on 8/29/2023 in #front-end
React-select problem with changing selected option
I'm currently using react-select to style a search bar within my project, and most aspects are functioning as expected. However, I'm encountering an issue with altering the color of selected options within the dropdown menu.
As for the setup, I have configured the dropdown to remain open until the user manually closes it by clicking the closing arrow. Additionally, I've enabled the multi-choice option. Here's where I'm seeking assistance: I want the background color of an already selected option to change after it's been chosen.
Could someone please guide me on how to achieve this? Your help would be greatly appreciated.
Thank you!
You can check my code in my stack overflow post:
https://stackoverflow.com/questions/76962823/having-problem-with-changing-background-color-of-a-selected-option-in-react-sele
1 replies