How can I prevent a <select> element from closing it's dropdown automatically after an option has been selected, i.e. I want to keep the option dropdown open even after a selection has been made.
I've tried invoking event.stopPropagation() and event.preventDefault() in the onChange handler for the <select> but neither worked.
Here is a fiddle with the basic components. I want to implement the functionality I described above.
Edit: I tried applying the stopPropagation() (as mentioned in the possible dulicate) to the <option>'s click handler, and that didn't work either. To me, it seems like there might a React-specific way to handle this case.