diff --git a/src/laydate.js b/src/laydate.js index b9d3d6b..54e7dd1 100644 --- a/src/laydate.js +++ b/src/laydate.js @@ -1250,6 +1250,10 @@ that.setBtnStatus(); //同步按钮可点状态 options.range || that.done(null, 'change'); lay(that.footer).find(ELEM_TIME_BTN).removeClass(DISABLED); + if(!options.range&&options.type==="month"&&!options.showBottom&&lay(this.parentNode).hasClass("laydate-month-list")){ + that.done(); + that.setValue(that.parse()).remove(); + } }); } else { var span = lay.elem('span', { @@ -1852,4 +1856,4 @@ }() ); -}(); \ No newline at end of file +}();