{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12091","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12091/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12091/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12091/events","html_url":"https://github.com/emberjs/ember.js/issues/12091","id":100929461,"number":12091,"title":"[REGRESSION]: nested component state seems to bleed state when common mixin shared","user":{"login":"toranb","id":147411,"avatar_url":"https://avatars.githubusercontent.com/u/147411?v=3","gravatar_id":"","url":"https://api.github.com/users/toranb","html_url":"https://github.com/toranb","followers_url":"https://api.github.com/users/toranb/followers","following_url":"https://api.github.com/users/toranb/following{/other_user}","gists_url":"https://api.github.com/users/toranb/gists{/gist_id}","starred_url":"https://api.github.com/users/toranb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toranb/subscriptions","organizations_url":"https://api.github.com/users/toranb/orgs","repos_url":"https://api.github.com/users/toranb/repos","events_url":"https://api.github.com/users/toranb/events{/privacy}","received_events_url":"https://api.github.com/users/toranb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-14T04:10:53Z","updated_at":"2015-08-17T15:47:42Z","closed_at":"2015-08-14T04:40:01Z","body":"I just upgraded from ember 1.13.6 to ember 1.13.7 and it seems a regression has slipped in (or I've been hacking away at the internals without knowing it). I have a failing test in this tiny example project that shows the break.\r\n\r\nhttps://github.com/toranb/pods-with-components-example\r\n\r\nThe actual stack shows an addon I use is the issue (on this exact line)\r\n\r\nhttps://github.com/toranb/ember-cli-simple-validation/blob/master/addon/mixins/validate.js#L29\r\n\r\nWhat's strange is that in ember 1.13.7 the parent component has \"name\" in the dynamicEachAttrs but in addition the child component (also using this mixin) suddenly has this each attr data causing the line above to execute in a non array (model) context.\r\n\r\nIn ember 1.13.6 this dynamicEachAttrs array is empty during the save ...\r\n\r\nThe funny part is that the \"save\" should only first for the child as that is the context in which I clicked the button.\r\n\r\nHere is the parent list component showing that validateEach is used\r\n\r\nhttps://github.com/toranb/pods-with-components-example/blob/master/app/components/customer-list/component.js#L10\r\n\r\nNext the child component showing we only use validate (not the validateEach)\r\n\r\nhttps://github.com/toranb/pods-with-components-example/blob/master/app/components/customer-detail/component.js#L10\r\n\r\nHere is the detail hbs that has the action/button setup (save)\r\n\r\nhttps://github.com/toranb/pods-with-components-example/blob/master/app/components/customer-detail/template.hbs#L5\r\n\r\nHere is the JS code to go with\r\n\r\nhttps://github.com/toranb/pods-with-components-example/blob/master/app/components/customer-detail/component.js#L12-L14\r\n\r\nTo be totally clear - the parent hbs has a save action but w/ a diff name\r\n\r\nhttps://github.com/toranb/pods-with-components-example/blob/master/app/components/customer-list/template.hbs#L13\r\n\r\nAny help to prove/disprove this as a true regression would be much much appreciated as this broke literally every app I work on :(\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/131869964","html_url":"https://github.com/emberjs/ember.js/issues/12091#issuecomment-131869964","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12091","id":131869964,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T15:47:42Z","updated_at":"2015-08-17T15:47:42Z","body":":+1: "}}