Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 87c882b

Browse files
committed
Merge pull request Eonasdan#1172 from justinmcdaniel/development
The defaultDate was not showing when using a placeholder.
2 parents 98a40b5 + 7861157 commit 87c882b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/bootstrap-datetimepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@
17611761

17621762
options.defaultDate = parsedDate;
17631763

1764-
if (options.defaultDate && options.inline || (input.val().trim() === '' && input.attr('placeholder') === undefined)) {
1764+
if ((options.defaultDate && options.inline) || input.val().trim() === '') {
17651765
setValue(options.defaultDate);
17661766
}
17671767
return picker;

0 commit comments

Comments
 (0)