Javascript angularjs网络版工作手机短信区可以';编辑
我在手机上使用应用程序时遇到问题 它在笔记本电脑浏览器上工作正常。当我尝试使用手机时,我无法编辑文本区域 流程如下: 开放模态 无法访问文本区域Javascript angularjs网络版工作手机短信区可以';编辑,javascript,html,angularjs,Javascript,Html,Angularjs,我在手机上使用应用程序时遇到问题 它在笔记本电脑浏览器上工作正常。当我尝试使用手机时,我无法编辑文本区域 流程如下: 开放模态 无法访问文本区域 $scope.testMember = function (item) { $modalStack.dismissAll('cancel'); $modal.open({ templateUrl: './testmail.
$scope.testMember = function (item) {
$modalStack.dismissAll('cancel');
$modal.open({
templateUrl: './testmail.html',
controller: 'TestMailCtrl',
resolve: {
emailRead: function() {
return item;
}
}
});
<div class="col-lg-9 col-sm-4 follow-info">
<label class="control-label">Message:<br/></label>
<textarea name="bodyText" id="bodyText" class="form-control" ng-maxlength="2000" cols="400" rows="10" ng-model="testBodyText"></textarea>
</div>
$scope.testMember=函数(项){
$modalStack.dismissAll('cancel');
$modal.open({
templateUrl:'./testmail.html',
控制器:“TestMailCtrl”,
决心:{
emailRead:function(){
退货项目;
}
}
});
消息:
这在我的笔记本电脑上很好用。在我的手机上不起作用
Phil我在我自己的项目中通过阻止touchend事件通过模式形式传播来解决这个问题,如下所示:
<div class="modal-body" stop-event="touchend">
.directive('stopEvent', function () {
return {
restrict: 'A',
link: function (scope, element, attr) {
element.on(attr.stopEvent, function (e) {
e.stopPropagation();
});
}
};
})) 我在我自己的项目中通过阻止touchend事件通过模式形式传播来解决这个问题,如下所示:
<div class="modal-body" stop-event="touchend">
.directive('stopEvent', function () {
return {
restrict: 'A',
link: function (scope, element, attr) {
element.on(attr.stopEvent, function (e) {
e.stopPropagation();
});
}
};
})) 对这个问题的评论主要归结为模态模板在模态窗口本身上有一个ngClick指令。我不能告诉你为什么这是必要的。在angular foundation包中,模式模板共享几乎完全相同的html,ng click=“close($event)”根本不映射到任何内容。它的作用域不包含关闭属性或函数。找到了答案。.我正在自己的项目中解决这个问题,方法是阻止touchend事件通过如下模式形式传播:使用如下指令:。指令('stopEvent',函数(){return{restrict:'a',link:function(作用域、元素、属性){element.on(attr.stopEvent,函数(e){e.stopPropagation();});};});对该问题的评论主要归结为模态模板在模态窗口本身上有一个ngClick指令。我无法告诉您为什么这是必要的。在angular foundation软件包中,它与模态模板共享几乎完全相同的html,ng click=“close($event)”根本不映射到任何内容。它的作用域不包含close属性或函数。找到了答案..我正在自己的项目中解决此问题,方法是阻止touchend事件通过模式形式传播,如下所示:使用如下指令:。指令('stopEvent',函数(){return{restrict:'a',link:function(作用域,元素,attr){element.on(attr.stopEvent,函数(e){e.stopPropagation();});};});