Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
fix(datepicker): update startView option when minView is used. (fixes #…
Browse files Browse the repository at this point in the history
…442)

Since minView options slices the available views, we need to decrement startView if both options are used
  • Loading branch information
mgcrea committed Feb 10, 2014
1 parent cabe24c commit 106507b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ angular.module('mgcrea.ngStrap.datepicker', ['mgcrea.ngStrap.helpers.dateParser'
var parentScope = config.scope;
var options = $datepicker.$options;
var scope = $datepicker.$scope;
if(options.startView) options.startView -= options.minView;

// View vars

Expand Down

0 comments on commit 106507b

Please sign in to comment.