$ionicModal.fromTemplateUrl('templates/categories-list.html', function(modal) {
$scope.modal = modal;
$scope.modal_title = 'Categorias';
$scope.modalLeftButtons = [
{
type: 'button-clear',
content: 'Cancel',
tap: function(e) {
$scope.modal.hide();
}
}];
}, {
// Use our scope for the scope of the modal to keep it simple
scope: $scope,
// The animation we want to use for the modal entrance
animation: 'slide-in-up'
});
So, I replaced mine with yours and all worked perfectly on Chrome and Safari as a PhoneGap app. My modal didn’t have the double click at all.
Here’s my final controller code :
// Load the modal from the given template URL
$ionicModal.fromTemplateUrl('templates/selectIconModal.html', function($ionicModal) {
$scope.modal = $ionicModal;
$scope.modal_title = 'Select Icon';
$scope.modalRightButtons = [
{
type: 'button-clear',
content: 'Cancel',
tap: function(e) {
$scope.modal.hide();
}
}];
}, {
// Use our scope for the scope of the modal to keep it simple
scope: $scope,
// The animation we want to use for the modal entrance
animation: 'slide-in-up'
});