jQuery datepicker在IE中不断重新开放

Jea*_*amp 5 internet-explorer jquery-ui datepicker internet-explorer-8

点击IE 8中的日期后,jQuery的datepicker会继续重新打开,即使在他们的演示页面上也是如此:

http://jqueryui.com/demos/datepicker/

有谁知道如何解决这一问题?我不知道演示页面,但我遇到了与jQuery 1.6.2和jQuery UI 1.8.15完全相同的问题.

此外,设置minDate和maxDate选项似乎在IE 8中没有任何影响.以上似乎也适用于IE 7.

Cor*_*tin 8

以下为我解决了这个问题(使用jQuery 1.7.2/jQueryUI 1.8.20)

var $input = $('#date');

$input.datepicker({
  /* 
   * your other settings here 
   */
  onSelect : function() { $input.blur(); },
  onClose  : function() { $input.change(); }
});

$input.on('change paste', function(evt) {
  // process new date input here
});
Run Code Online (Sandbox Code Playgroud)


and*_*dyb 1

1.8.14在 IE8 中运行良好

重新打开似乎是1.8.15中的一个错误,请参阅损坏的演示