Datepicker not opening twice in angular-ui version 0.11.0

前端 未结 11 1446
一向
一向 2020-12-28 12:43

I am trying to have 2 datepickers and I am using Angular UI version 0.11.0.

My HTML code


     

        
11条回答
  •  被撕碎了的回忆
    2020-12-28 13:13

    I solved this problem by adding changing is-open from "opened" to "$parent.opened" Like this.

    seanControllers.controller('TracksController', ['$scope',
      function($scope) {
        $scope.openCalendar = function($event) {
          $event.preventDefault();
          $event.stopPropagation();
    
          $scope.opened = true;
        };
      }
    ]);

提交回复
热议问题