Hello,
I followed the advice Jed gave regarding force opening the drop-down menu but I couldn't figure how to do it. I have opened a thread on Stackoverflow, but so far I haven't received any answers.
What's the procedure of calling focus()
function? I have tried referencing the component via ref
attribute but I had no luck in succeeding.
If it's for debug purposes, I managed to force it by changing the internal state.isOpen through the React Chrome plugin
In my case I wanted to tweak the CSS and needed to focus on the container (Select-menu-outer
) to change its CSS.
for future googlers: you can also use defaultMenuIsOpen={true}
Most helpful comment
for future googlers: you can also use
defaultMenuIsOpen={true}