mirror of https://github.com/layui/layui
优化 laydate 开启 `rangeLinked` 属性后,点击目标元素可重新渲染的问题
parent
b31b364c16
commit
3b919e1b7a
|
@ -2178,9 +2178,9 @@
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
//初始执行
|
// 初始执行
|
||||||
ready.run = function(lay){
|
ready.run = function(lay){
|
||||||
//绑定关闭控件事件
|
// 绑定关闭控件事件
|
||||||
lay(document).on('mousedown', function(e){
|
lay(document).on('mousedown', function(e){
|
||||||
if(!laydate.thisId) return;
|
if(!laydate.thisId) return;
|
||||||
var that = thisModule.getThis(laydate.thisId);
|
var that = thisModule.getThis(laydate.thisId);
|
||||||
|
@ -2191,7 +2191,8 @@
|
||||||
if(
|
if(
|
||||||
e.target === options.elem[0] ||
|
e.target === options.elem[0] ||
|
||||||
e.target === options.eventElem[0] ||
|
e.target === options.eventElem[0] ||
|
||||||
e.target === lay(options.closeStop)[0]
|
e.target === lay(options.closeStop)[0] ||
|
||||||
|
(options.elem[0] && options.elem[0].contains(e.target))
|
||||||
) return;
|
) return;
|
||||||
|
|
||||||
that.remove();
|
that.remove();
|
||||||
|
|
Loading…
Reference in New Issue