mirror of https://github.com/layui/layui
fix(layer): 空图片容器动态添加图片时,无法收集数据的问题 (#2581)
parent
2f404fb6ed
commit
b2c1a6130b
|
@ -1554,8 +1554,6 @@ layer.photos = function(options, loop, key){
|
|||
|
||||
pushData();
|
||||
|
||||
if (data.length === 0) return;
|
||||
|
||||
loop || parent.on('click', options.img, function(){
|
||||
pushData();
|
||||
var othis = $(this), index = othis.attr('layer-index');
|
||||
|
|
Loading…
Reference in New Issue