Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 837
user2954587 Avatar asked Mar 19 '23 18:03

user2954587


1 Answers

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
like image 101
apairet Avatar answered Apr 25 '23 08:04

apairet