react-dropdown
react-dropdown copied to clipboard
Use "visibility: hidden" instead of "display:none" to hide the dropdown menu
Problem
I want to open the dropdown menu by default downwards and only if the dropdown menu list will be at the end of the page (it will be cut & user has to scroll to see the dropdown list) then open it upwards. The problem with the current implementation is that 'display: none' is used which means the dropdown menu does not appear in the dom & therefore I can not detect if the dropdown menu list will be at the end of the page.
So I suggest using visibility: hidden instead of 'display: none'.