2016-10-12 2 views
0

Ich bin neu in Ionic. Während ich mit Ionic-Komponenten herumspielte, fand ich heraus, dass, wenn ich versuche, Modal innerhalb von Popup zu erstellen, der Inhalt innerhalb von Modal nicht angeklickt werden kann. Ich habe ähnliche Frage gefunden: Open an ionic modal on top of an ionic popup aber niemand scheint Vorschläge zu machen.Ionic Opening Modal oben auf Popup

Irgendwelche Ratschläge oder Vorschläge?

Controller; creates Popup and info_input has a button to open modal. 
var myPopup = $ionicPopup.show({ 
     templateUrl: 'templates/info_input.html', 
     scope: $scope, 
     buttons: [ 
     { 
      text: 'Cancel', 
      } 
     }, 
     { 
      text: '<span class="selectConfirm">Select</span>', 
      type: 'button-dark', 
      onTap: function(e) { 
       if (!scope.autofill) { 
        e.preventDefault(); 
       } else { 
        $scope.NextPage(0); 
       } 
      } 
     } 
     ] 
    }); 

Antwort

1

Ich habe vorläufige Lösung dafür gefunden. Ich habe bearbeitet ionic.css Datei

.popup-open { 
    pointer-events: none; } 

to 

.popup-open { 
    pointer-events: auto; }