extjs7 selectfield异常 Uncaught TypeError: Cannot read property 'hasPendingLoad' of null

场景

下拉选择某项目后报异常 “Uncaught TypeError: Cannot read property ‘hasPendingLoad’ of null”

源码

view.js

 {
    xtype: 'selectfield', label: '支持类型', bind: {store: '{types}', value: '{types}'},
    multiSelect: true
}

viewmodel.js

data: {
	types: null
},
stores: {
        types: {
            data: [...]
        }
    }

解决方案:绑定的store和data改为不同名称即可

posted on 2022-04-11 22:40  路过君  阅读(0)  评论(0编辑  收藏  举报

导航