I'm using react-select with react-window but there is issue with height of dropdown like:
I have only two value but height is larger than items, How can i fix it? dropdown values coming from API that can be vary.
Note: I also need to define maxHeight of dropdown.
Changing the height using react style to
max-contentfixes the issue hereyou still need to specify
heightsince the component requires it but it can be any value themax-contentwill overwrite it. This is a fixed fork of your issue