{"action":"created","issue":{"url":"https://api.github.com/repos/thefrontside/emberx-select/issues/48","labels_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/48/comments","events_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/48/events","html_url":"https://github.com/thefrontside/emberx-select/issues/48","id":95549196,"number":48,"title":"Multiple {{x-selects}} on the same template","user":{"login":"shamanime","id":332276,"avatar_url":"https://avatars.githubusercontent.com/u/332276?v=3","gravatar_id":"","url":"https://api.github.com/users/shamanime","html_url":"https://github.com/shamanime","followers_url":"https://api.github.com/users/shamanime/followers","following_url":"https://api.github.com/users/shamanime/following{/other_user}","gists_url":"https://api.github.com/users/shamanime/gists{/gist_id}","starred_url":"https://api.github.com/users/shamanime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamanime/subscriptions","organizations_url":"https://api.github.com/users/shamanime/orgs","repos_url":"https://api.github.com/users/shamanime/repos","events_url":"https://api.github.com/users/shamanime/events{/privacy}","received_events_url":"https://api.github.com/users/shamanime/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-16T23:03:10Z","updated_at":"2015-07-16T23:50:58Z","closed_at":null,"body":"I am trying to use multiple selects on my template, as follows:\r\n\r\n```handlebars\r\n<label>Type</label>\r\n{{#x-select value=model.type.content action=\"selectType\"}}\r\n  {{#each types as |item|}}\r\n    {{#x-option value=item}}{{item.name}}{{/x-option}}\r\n  {{/each}}\r\n{{/x-select}}\r\n<label>Status</label>\r\n{{#x-select value=model.status.content action=\"selectStatus\"}}\r\n  {{#each statuses as |item|}}\r\n    {{#x-option value=item}}{{item.name}}{{/x-option}}\r\n  {{/each}}\r\n{{/x-select}}\r\n```\r\n\r\nBut this throws the following message in the console:\r\n```\r\nError: Assertion Failed: x-option component declared without enclosing x-select\r\n```\r\n\r\nIf I remove either of the selects, it works.\r\n\r\nThe relevant route code:\r\n\r\n```javascript\r\nimport Ember from 'ember';\r\n\r\nexport default Ember.Route.extend({\r\n  setupController: function(controller, model) {\r\n    this._super(controller, model);\r\n\r\n    controller.set('statuses', this.store.findAll('status'));\r\n    controller.set('types', this.store.findAll('type'));\r\n  },\r\n\r\n  actions: {\r\n    selectStatus: function(selection) {\r\n      console.log('Selecting status');\r\n      if (selection) {\r\n        this.get('currentModel').set('status', selection);\r\n      }\r\n    },\r\n\r\n    selectType: function(selection) {\r\n      console.log('Selecting type');\r\n      if (selection) {\r\n        this.get('currentModel').set('type', selection);\r\n      }\r\n    }\r\n  }\r\n});\r\n```\r\n\r\nAm I doing something wrong?\r\n\r\nPS: Using version 1.1.4, ember-cli 1.13.1."},"comment":{"url":"https://api.github.com/repos/thefrontside/emberx-select/issues/comments/122132686","html_url":"https://github.com/thefrontside/emberx-select/issues/48#issuecomment-122132686","issue_url":"https://api.github.com/repos/thefrontside/emberx-select/issues/48","id":122132686,"user":{"login":"jcope2013","id":3374461,"avatar_url":"https://avatars.githubusercontent.com/u/3374461?v=3","gravatar_id":"","url":"https://api.github.com/users/jcope2013","html_url":"https://github.com/jcope2013","followers_url":"https://api.github.com/users/jcope2013/followers","following_url":"https://api.github.com/users/jcope2013/following{/other_user}","gists_url":"https://api.github.com/users/jcope2013/gists{/gist_id}","starred_url":"https://api.github.com/users/jcope2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcope2013/subscriptions","organizations_url":"https://api.github.com/users/jcope2013/orgs","repos_url":"https://api.github.com/users/jcope2013/repos","events_url":"https://api.github.com/users/jcope2013/events{/privacy}","received_events_url":"https://api.github.com/users/jcope2013/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T23:50:58Z","updated_at":"2015-07-16T23:50:58Z","body":"i have got multiple ones working but was seeing something similar when i had two until i got it working, it seemed async related so i switched some stuff around.\r\n\r\nthese may clear it up\r\n\r\nhttps://github.com/thefrontside/emberx-select/issues/44\r\nhttps://github.com/thefrontside/emberx-select/pull/45"}}