mirror of https://github.com/layui/laydate
修改在页面中按回车bug
parent
58993471fb
commit
3d97291553
|
@ -832,7 +832,9 @@ Dates.events = function(){
|
|||
}).on(doc, 'keydown', function(event){
|
||||
event = event || win.event;
|
||||
var codes = event.keyCode;
|
||||
if(codes === 13){
|
||||
|
||||
//如果在日期显示的时候按回车
|
||||
if(codes === 13 && Dates.elem){
|
||||
Dates.creation([Dates.ymd[0], Dates.ymd[1]+1, Dates.ymd[2]]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue