{"action":"created","issue":{"url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/91","repository_url":"https://api.github.com/repos/knownasilya/ember-toggle","labels_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/91/comments","events_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/91/events","html_url":"https://github.com/knownasilya/ember-toggle/issues/91","id":257310710,"number":91,"title":"`x-toggle` toggles on click when the `onToggle` action does not update the value","user":{"login":"lolmaus","id":200884,"avatar_url":"https://avatars0.githubusercontent.com/u/200884?v=4","gravatar_id":"","url":"https://api.github.com/users/lolmaus","html_url":"https://github.com/lolmaus","followers_url":"https://api.github.com/users/lolmaus/followers","following_url":"https://api.github.com/users/lolmaus/following{/other_user}","gists_url":"https://api.github.com/users/lolmaus/gists{/gist_id}","starred_url":"https://api.github.com/users/lolmaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolmaus/subscriptions","organizations_url":"https://api.github.com/users/lolmaus/orgs","repos_url":"https://api.github.com/users/lolmaus/repos","events_url":"https://api.github.com/users/lolmaus/events{/privacy}","received_events_url":"https://api.github.com/users/lolmaus/received_events","type":"User","site_admin":false},"labels":[{"id":136546331,"url":"https://api.github.com/repos/knownasilya/ember-toggle/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-13T09:15:40Z","updated_at":"2017-09-13T09:39:45Z","closed_at":null,"author_association":"COLLABORATOR","body":"## How to reproduce\r\n\r\n```js\r\n{\r\n  value: false,\r\n  \r\n  actions: {\r\n    toggle () {}\r\n  }\r\n}\r\n```\r\n\r\n```handlebars\r\n<p>value: {{value}}</p>\r\n\r\n{{x-toggle value=value onToggle=(action 'toggle')}}\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/200884/30369415-1b704256-987d-11e7-8e0f-9ab17e32b46e.png)\r\n\r\nNow click the toggle.\r\n\r\n\r\n\r\n## What I expect to happen\r\n\r\nThe component should not toggle because the action does not update the value.\r\n\r\n\r\n## What actually happens\r\n\r\n![image](https://user-images.githubusercontent.com/200884/30369429-2c9659ee-987d-11e7-8be4-251f0021cfa9.png)\r\n\r\nThe component does toggle, the value and the component's state are out of sync.\r\n\r\n\r\n\r\n## Reproduction\r\n\r\nhttps://ember-twiddle.com/85bcda587638b642fcf254d550488899?numColumns=2&openFiles=controllers.application.js%2Ctemplates.application.hbs\r\n\r\n\r\n\r\n## Notes\r\n\r\nHappens only for clicking. Dragging works correctly: the component toggles only when the action updates the value."},"comment":{"url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/comments/329114691","html_url":"https://github.com/knownasilya/ember-toggle/issues/91#issuecomment-329114691","issue_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/91","id":329114691,"user":{"login":"lolmaus","id":200884,"avatar_url":"https://avatars0.githubusercontent.com/u/200884?v=4","gravatar_id":"","url":"https://api.github.com/users/lolmaus","html_url":"https://github.com/lolmaus","followers_url":"https://api.github.com/users/lolmaus/followers","following_url":"https://api.github.com/users/lolmaus/following{/other_user}","gists_url":"https://api.github.com/users/lolmaus/gists{/gist_id}","starred_url":"https://api.github.com/users/lolmaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lolmaus/subscriptions","organizations_url":"https://api.github.com/users/lolmaus/orgs","repos_url":"https://api.github.com/users/lolmaus/repos","events_url":"https://api.github.com/users/lolmaus/events{/privacy}","received_events_url":"https://api.github.com/users/lolmaus/received_events","type":"User","site_admin":false},"created_at":"2017-09-13T09:39:45Z","updated_at":"2017-09-13T09:39:45Z","author_association":"COLLABORATOR","body":"I've just tried `one-way-checkbox` from `ember-one-way-controls` and it has the same problem. :sob:\r\n\r\nhttps://ember-twiddle.com/3ce9e7f1dd2a09ae7c9219a8031e69be?numColumns=2&openFiles=controllers.application.js%2Ctemplates.application.hbs"}}
{"actor":{"display_login":"lolmaus"}}