I have two datepickers that now work but I still can't get the button to work.
I implemented the solution from here but it gets rid of the button. I'd like to keep the calendar button.
How can I keep the calendar button working?
edit: to clarify, it works only for the first click
<div class="input-group">
<input type="text"
datepicker-popup="MM/dd/yyyy"
ng-model="report_args.start_date"
is-open="opened1"
ng-click = "report_args.start_date.open = true"
max-date="maxDate"
datepicker-options="dateOptions"
date-disabled="disabled(date, mode)"
ng-required="true"
close-text="Close"
class="form-control">
<span class="input-group-addon" ng-click="open($event,'opened1')">
<i class="fa fa-calendar"></i>
</span>
</div>
JS
$scope.open = function($event, opened) {
$event.preventDefault();
$event.stopPropagation();
$scope[opened] = true;
};