Skip to content

Commit

Permalink
fixes #199
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Sep 17, 2018
1 parent 02d615e commit 0704cb4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
7 changes: 4 additions & 3 deletions build/js/tempusdominus-bootstrap-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ var DateTimePicker = function ($, moment) {
showClear: false,
showClose: false
},
widgetPositioning: 'auto',
widgetPositioning: {
horizontal: 'auto',
vertical: 'auto'
},
widgetParent: null,
ignoreReadonly: false,
keepOpen: false,
Expand Down Expand Up @@ -407,8 +410,6 @@ var DateTimePicker = function ($, moment) {
if (!this._options.allowMultidate || this._dates.length === 1) {
this.unset = true;
this._dates = [];
this._dates[0] = this.getMoment();
this._viewDate = this.getMoment().clone();
this._datesFormatted = [];
} else {
outpValue = this._element.data('date') + ',';
Expand Down
2 changes: 1 addition & 1 deletion build/js/tempusdominus-bootstrap-4.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tempusdominus/bootstrap-4",
"type": "component",
"version": "5.1.0",
"version": "5.1.1",
"description": "Date/time picker widget based on twitter bootstrap",
"keywords": [
"bootstrap",
Expand Down
5 changes: 4 additions & 1 deletion docs/js/tempusdominus-bootstrap-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ var DateTimePicker = function ($, moment) {
showClear: false,
showClose: false
},
widgetPositioning: 'auto',
widgetPositioning: {
horizontal: 'auto',
vertical: 'auto'
},
widgetParent: null,
ignoreReadonly: false,
keepOpen: false,
Expand Down
5 changes: 4 additions & 1 deletion docs/theme/js/tempusdominus-bootstrap-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ var DateTimePicker = function ($, moment) {
showClear: false,
showClose: false
},
widgetPositioning: 'auto',
widgetPositioning: {
horizontal: 'auto',
vertical: 'auto'
},
widgetParent: null,
ignoreReadonly: false,
keepOpen: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"type": "git",
"url": "https://github.com/tempusdominus/bootstrap-4.git"
},
"version": "5.1.0",
"version": "5.1.1",
"files": [
"build",
"src/js/**/*.js",
Expand Down
5 changes: 4 additions & 1 deletion src/docs/theme/js/tempusdominus-bootstrap-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ var DateTimePicker = function ($, moment) {
showClear: false,
showClose: false
},
widgetPositioning: 'auto',
widgetPositioning: {
horizontal: 'auto',
vertical: 'auto'
},
widgetParent: null,
ignoreReadonly: false,
keepOpen: false,
Expand Down

0 comments on commit 0704cb4

Please sign in to comment.