Datepicker Link Issue v1.12

datepicker previous month link behaviour

HTML

<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<link rel="stylesheet" href="https://jsfiddle.net/resources/demos/style.css">
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.0/themes/smoothness/jquery-ui.css">
<div id="calendarDiv"></div>

<p>Steps to reproduce:</p>
<ol>
  <li>Select Feb 1 (at the bottom, don't use the next month buttons).</li>
  <li>Click on the "Next month" button.</li>
  <li>You have now jumped from January to March</li>
</ol>

JavaScript

$('#calendarDiv').datepicker({
  dateFormat:       'yy-mm-dd',
	defaultDate:      '2022-01-01',
  showOtherMonths:   true,
  selectOtherMonths: true,
});