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

1 回答 1

1

我为此找到了临时解决方案。我编辑了ionic.css 文件

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

to

.popup-open {
  pointer-events: auto; } 
于 2016-10-17T00:52:19.417 回答