mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Fix: the popup is closed on date-click if timepicker is disabled
When "timepicker" is disabled - the popup should close on date-click. The "if" was failing because of the type diff
This commit is contained in:
parent
ba9fd43a8a
commit
56b5046f96
@ -1669,7 +1669,7 @@
|
||||
datetimepicker.trigger('select.xdsoft', [currentTime]);
|
||||
|
||||
input.val(_xdsoft_datetime.str());
|
||||
if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === 0 && !options.timepicker))) && !options.inline) {
|
||||
if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === false && !options.timepicker))) && !options.inline) {
|
||||
datetimepicker.trigger('close.xdsoft');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user