pull/71/merge
J.Soon 2021-05-22 13:41:21 -07:00 committed by GitHub
commit 11e94ad1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -2196,6 +2196,17 @@
isAlone && ((index ? that.endDate : dateTime).year = ym);
that.list('month', index);
}
/**
* 如果非范围选择且为年月选择器点击了月列表则完成年月选择关闭选择器列表
* @author J.Soon <serdeemail@gmail.com>
*/
if (!options.range) {
if(options.type === 'month' && type === 'month'){
that.checkDate('limit').calendar();
that.done();
that.setValue(that.parse()).remove();
}
}
} else {
that.checkDate('limit').calendar(null, index);
that.closeList();