Skip to content

Commit

Permalink
Update ionic-datepicker.provider.js
Browse files Browse the repository at this point in the history
Added close service
  • Loading branch information
alanmilinovic authored Feb 4, 2025
1 parent fee0573 commit 07160ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ionic-datepicker.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ angular.module('ionic-datepicker.provider', [])
angular.extend(config, inputObj);
};

this.$get = ['$rootScope', '$ionicPopup', '$ionicModal', 'IonicDatepickerService', function ($rootScope, $ionicPopup, $ionicModal, IonicDatepickerService) {
this.$get = ['$rootScope', '$ionicPopup', '$ionicModal', 'IonicDatepickerService', 'IonicClosePopupService', function ($rootScope, $ionicPopup, $ionicModal, IonicDatepickerService, IonicClosePopupService) {

var provider = {};

Expand Down Expand Up @@ -286,6 +286,9 @@ angular.module('ionic-datepicker.provider', [])
cssClass: 'ionic_datepicker_popup',
buttons: buttons
});

IonicClosePopupService.register($scope.popup);

return closePopup;
}
openModal();
Expand Down

0 comments on commit 07160ff

Please sign in to comment.