user2954587
user2954587

Reputation: 4861

Angular UI bootstrap datepicker pop-up not working when upgrading to version 0.11 from 0.10

The angular-ui-bootstrap datepicker isn't popping up when clicked after upgrading to version 0.11.

I've tried the recommended work around which is setting

is-open="dt.open" ng-focus="dt.open=true"

this works when it is enabled on just one calendar but not if there are two on the same page (both open and they are unusable). Anyone know a better work around that does not pollute the scope?

I've also tried changing ng-focus to ng-click and had no luck with that.

Upvotes: 4

Views: 4813

Answers (1)

apairet
apairet

Reputation: 3162

Two separate datepicker will require 2 distinct variables to control them:

is-open="dt.open" ng-focus="dt.open=true" // first datepicker

is-open="dt2.open" ng-focus="dt2.open=true" // second datepicker

Upvotes: 7

Related Questions