我有一个ember selectize字段 - 当我创建项目时 - 它将它添加为我的下拉确定 - 但它不会自动选择它。我试图设置模型,但是这会产生错误。不确定它意味着什么或如何纠正。
在我的行动中,我有类似的东西
createItem(item) {
console.log("create ", item);
this.set('references', this.get('references').addObject({reference:item}));//add item to references and set the referenc.agenda.method.valuees
//this line here creates the error.
this.set('model.campaignReference', item);//set the campaign reference in the model
},
错误
EmberError {description: undefined, fileName: undefined, lineNumber: undefined, message: "Assertion Failed: You modified "focused" twice on …m/emberjs/ember.js/issues/13948 for more details.", name: "Error", …}