I want to close the react-select menu when scrolled outside of menu list

There is a closeMenuOnScroll prop in the official react-select documentation which states the following: closeMenuOnScroll prop

However, when I set closeMenuOnScroll={() => true} prop on the component, it closes the menu even if I scroll inside of it (I can’t scroll the menu options, because it is automatically closed).
What I try to achieve is to go through (scroll) the menu items when I scroll inside the react-select component and close the menu if I scroll out of it.

Thanks.

<Select
   options={options}
   onChange={handleChange}
   closeMenuOnScroll={() => true}
/>