Skip to content

Commit

Permalink
fix(datepicker): reseting min and max boundaries will reset it in dat…
Browse files Browse the repository at this point in the history
…epicker (#3112)

fixes #3085
  • Loading branch information
valorkin authored Nov 27, 2017
1 parent 60f8b31 commit a72fedc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/datepicker/bs-datepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export class BsDatepickerComponent implements OnInit, OnDestroy, OnChanges {
this._config = Object.assign({}, this._config, this.bsConfig, {
value: this._bsValue,
isDisabled: this.isDisabled,
minDate: this.minDate || this._config.minDate,
maxDate: this.maxDate || this._config.maxDate
minDate: this.minDate || this.bsConfig && this.bsConfig.minDate,
maxDate: this.maxDate || this.bsConfig && this.bsConfig.maxDate
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/datepicker/bs-daterangepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export class BsDaterangepickerComponent
{
value: this._bsValue,
isDisabled: this.isDisabled,
minDate: this.minDate || this._config.minDate,
maxDate: this.maxDate || this._config.maxDate
minDate: this.minDate || this.bsConfig && this.bsConfig.minDate,
maxDate: this.maxDate || this.bsConfig && this.bsConfig.maxDate
}
);
}
Expand Down

0 comments on commit a72fedc

Please sign in to comment.