title: React-DatePicker - how to disable closing on start date selection
body: <p>I develop DatePicker for components library, and using the <code>react-datepicker</code> npm to do so.</p>
  <p>The desired behavior is that the user click the input, the date picker will open, the user will select 2 dates, when click on the 2nd date the DatePicker will close.</p>
  <p>The issue is that the picker is being closed on the start date selection.</p>
  <p>I removed all my code, and use the exact example displayed in the npm demo:</p>
  <p><a href="http://npm%20demo" rel="nofollow noreferrer">https://reactdatepicker.com/#example-date-range-using-input-with-clear-button</a></p>
  <p>still the date picker is closing on the start date select.</p>
  <p>I tried adding <code>shouldCloseOnSelect</code> set to <code>true</code> but then it doesn't close on end date select as well.</p>
  <p>how to prevent the closing on the start date, and allow it on the end date.</p>
  <p><strong>current code:</strong></p>
  <pre><code>const MyDatePicker = () =&gt; {
    const [dateRange, setDateRange] = useState([null, null]);
    const [testStart, testEnd] = dateRange;
    return (
      &lt;ReactDatePicker
        selectsRange={true}
        startDate={testStart}
        endDate={testEnd}
        onChange={(update: any) =&gt; {
          setDateRange(update);
        }}
        isClearable={true}
      /&gt;
    );
  
  }
  </code></pre>