mirror of https://github.com/layui/layui
修复 laydate 中 min/max/value 的提示逻辑错误
parent
30a3996413
commit
77bb19352c
|
@ -836,8 +836,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
//初始值不在最大最小范围内
|
||||
minMaxError && that.setValue(that.parse()).hint('初始值' + lang.invalidDate + lang.formatError[1]);
|
||||
// 初始值不在最大最小范围内
|
||||
if(minMaxError && value){
|
||||
that.setValue(that.parse());
|
||||
that.hint('value ' + lang.invalidDate + lang.formatError[1]);
|
||||
}
|
||||
|
||||
fn && fn();
|
||||
return that;
|
||||
|
|
Loading…
Reference in New Issue