title: jQueryUI datepicker - second instance flashes then disappears when show() is called
body: <p>I have two jQueryUI datepickers on my page. </p>
  
  <p>They're initialised as below:</p>
  
  <pre><code>jQuery("#departureDate").datepicker({
      beforeShow: function() {
          getDatesForCalendar("outbound");
      },
      numberOfMonths: 3,
      constrainInput: true,
      dateFormat: 'dd/mm/yy',
      showButtonPanel: false,
      hideIfNoPrevNext: true,
      onSelect: function(dateText, inst) { jQuery('#returnDate').datepicker("show");  } 
  });
  
  
  jQuery("#returnDate").datepicker({
      beforeShow: function() {
          getDatesForCalendar("return");
      },
      numberOfMonths: 3,
      constrainInput: true,
      dateFormat: 'dd/mm/yy',
      showButtonPanel: false,
      showOn: "focus",
      hideIfNoPrevNext: true,
      defaultDate: +1
  });
  </code></pre>
  
  <p>Before they pop up they check which dates are available to them using getDatesForCalendar(), which contains no code that should hide or show the calendars.</p>
  
  <p>My problem is that when the first calendar calls up the second (which is does onSelect), the second calendar flashes up for a second and then disappears. This is a FF/Chrome only issue, it doesn't appear to affect IE8.</p>
  
  <p>I've tried a number of solutions including changing the tabindex (there is now none at all), disabling the show on focus functionality, and finally instead of manually calling datepicker("show") I've tried calling focus() on the field it's tied to. Nothing has worked!</p>
  
  <p>Any advice would be <em>greatly</em> appreciated.</p>
  
  <p>Many thanks,</p>
  
  <p>Jack</p>