2016-10-06 108 views
0

我在我的頁面中有一個角度錨標記,當它禁用時,它仍然可以在Microsoft Edge瀏覽器中單擊。Microsoft Edge - 禁用的鏈接可點擊

<a ng-disabled="true" ng-click="Click()">Link</a> 


a[disabled] { 
    pointer-events: none; 
} 

我該如何解決?

+0

的可能的複製[AngularJS - NG-禁用不工作的定位標記(http://stackoverflow.com/questions/30479105/angularjs-ng-disabled-not-working-爲錨標籤) – steveax

回答

0

嘗試:

.disabled { 
    cursor: not-allowed; 
} 

<a ng-click="disabled()" ng-class="{disabled: addInviteesDisabled()}">Link</a> 

$scope.disabled = function() { 
    //your display logic goes here should return true/false 
}