Disable enter key in JQuery ui datepicker

前端 未结 5 1960
暗喜
暗喜 2020-12-11 04:58

There seems to be a bug with JQuery UI datepicker, when user manually enters a date, and hits enter, the datepicker closes but focus stays on the field and therefor calendar

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 05:34

    Solved by adding a blur() event to the onClose method of the datepicker.

提交回复
热议问题