Merge pull request #464 from andrewmnlv/master

fix: currentTime can't be null for inline mode
This commit is contained in:
Valeriy 2017-05-12 10:04:18 +05:00 committed by GitHub
commit 1525c13027

View File

@ -946,8 +946,7 @@
setPos,
timer = 0,
_xdsoft_datetime,
forEachAncestorOf,
throttle;
forEachAncestorOf;
if (options.id) {
datetimepicker.attr('id', options.id);
@ -1307,7 +1306,7 @@
else if (_this.isValidDate(dTime)) {
_this.currentTime = dTime;
}
else if (!dTime && !requireValidDate && options.allowBlank) {
else if (!dTime && !requireValidDate && options.allowBlank && !options.inline) {
_this.currentTime = null;
}
else {