layui的年月选择器单击不选择且不关闭,我想要的效果是点击选择并关闭
//年月选择器
laydate.render({
elem: '#test'
, type: 'month'
, trigger: 'click'
, change: function (value, date, endDate) {
if ($(event.target).hasClass("layui-this")) {
$(this.elem).val(value);
$(".layui-laydate").remove();
}
}
});