Javascript 当使用transclude和disabled时,IE11和Chrome中的角度不同行为
我有一个简单的transclude指令Javascript 当使用transclude和disabled时,IE11和Chrome中的角度不同行为,javascript,angularjs,google-chrome,internet-explorer,Javascript,Angularjs,Google Chrome,Internet Explorer,我有一个简单的transclude指令 app.directive('trans', function(){ return { restrict: 'E', transclude: true, scope: true, template: '<div><div ng-transclude></div></div>' } }) app.directive(
app.directive('trans', function(){
return {
restrict: 'E',
transclude: true,
scope: true,
template: '<div><div ng-transclude></div></div>'
}
})
app.directive('trans',function(){
返回{
限制:'E',
是的,
范围:正确,
模板:“”
}
})
如果我使用这样的指令:
<input type="text" data-ng-model="data.test" placeholder="outside" />
<trans disabled="true">
<input type="text" data-ng-model="data.test" placeholder="inside" />
</trans>
那么IE11和Chrome的行为就不同了
在chrome中,禁用被忽略
“在IE中”字段看起来已禁用,但您可以键入该字段并保留占位符,并且您不能使用“删除”按钮,只能使用退格
我的问题是为什么?什么样的行为才是正确的?它是角形的还是IE的还是镀铬的
多谢各位
例如: