2016-10-12 110 views
0

我是新來的離子。當我在玩Ionic組件時,發現當我嘗試在彈出框中創建模態時,模態內的內容不能被點擊。離子彈出模式彈出

我發現了類似的問題:Open an ionic modal on top of an ionic popup 但似乎沒有人提出建議。

任何建議或建議?

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); 
       } 
      } 
     } 
     ] 
    }); 

回答

1

我已經找到了這個臨時解決方案。我已編輯ionic.css文件

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

to 

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