2016-10-12 43 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; }