灰烬 - 选择错误 - 您修改了"聚焦"两次

时间:2018-05-02 09:55:02

标签: ember.js

我有一个ember selectize字段 - 当我创建项目时 - 它将它添加为我的下拉确定 - 但它不会自动选择它。我试图设置模型,但是这会产生错误。不确定它意味着什么或如何纠正。

https://ember-twiddle.com/9f3883fc1155a7bc9cb43c212643843d?openFiles=controllers.my-route.js%2C&route=%2Fmy-route

在我的行动中,我有类似的东西

     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", …}

0 个答案:

没有答案