在extjs-6 - modern中创建了一个用于文件上传的表单。在chrome浏览器上进行新的更新后,我收到以下错误消息:“表单提交被取消,因为表单未连接”
我也尝试在body上渲染表单,仍然得到相同的错误。请提前提出任何我是missing.Thanks的建议。
Ext.define('LayersSurvey.view.Attachments',
{
extend: 'Ext.form.Panel',
alias: 'widget.attachments',
controller: 'Basecontrol',
closeAction: 'hide',
closable: false,
colapsible: true,
//zIndex: 9999,
scrollable: true,
renderTo: Ext.getBody(),
multipartDetection:true,
items:
[{
xtype: 'selectfield',
label: 'Floor',
labelAlign: 'left',
//labelWidth :'30%',
name: 'attachmentType',
required: true,
options:
[{
text: 'G-2',
value: '-2'
}, {
text: 'G-1',
value: '-1'
},{
text: 'G',
value: '0'
}, {
text: 'M',
value: '0.5'
},{
text: 'G+1',
value: '1'
}, {
text: 'G+2',
value: '2'
},{
text: 'G+3',
value: '3'
}, {
text: 'G+4',
value: '4'
},{
text: 'G+5',
value: '5'
}, {
text: 'G+6',
value: '6'
},{
text: 'G+7',
value: '7'
},{
text: 'G+8',
value: '8'
},{
text: 'G+9',
value: '9'
},{
text: 'G+10',
value: '10'
}],
listeners:
{
}
},{
xtype: 'filefield',
//label: "Attachment:",
name: 'photo',
//bodyAlign:'center',
accept: 'image',
listeners:
{
tap:'onMediaChange'
}
},
{
xtype:'button',
text: 'Upload',
ui: 'action',
action:'',
listeners: {tap:'onMediaUpload'}
}]
});发布于 2017-04-11 04:52:52
在窗体的配置中,确保将enableSubmissionForm设置为false。
在我遇到这个问题的情况下,我使用Architect来创建我的应用程序的web应用程序版本,而在Chrome中我得到了同样的错误。默认情况下,enableSubmissionForm在extjs6.x中似乎是true。
https://stackoverflow.com/questions/43000292
复制相似问题