diff --git a/src/laydate.js b/src/laydate.js index ca30988..d2d48bb 100644 --- a/src/laydate.js +++ b/src/laydate.js @@ -1254,6 +1254,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', { @@ -1853,4 +1857,4 @@ }() ); -}(); \ No newline at end of file +}();