{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/3612","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/3612/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/3612/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/3612/events","html_url":"https://github.com/storybooks/storybook/pull/3612","id":324750866,"number":3612,"title":"Fix the output of the boolean knob","user":{"login":"Keraito","id":5955441,"avatar_url":"https://avatars1.githubusercontent.com/u/5955441?v=4","gravatar_id":"","url":"https://api.github.com/users/Keraito","html_url":"https://github.com/Keraito","followers_url":"https://api.github.com/users/Keraito/followers","following_url":"https://api.github.com/users/Keraito/following{/other_user}","gists_url":"https://api.github.com/users/Keraito/gists{/gist_id}","starred_url":"https://api.github.com/users/Keraito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keraito/subscriptions","organizations_url":"https://api.github.com/users/Keraito/orgs","repos_url":"https://api.github.com/users/Keraito/repos","events_url":"https://api.github.com/users/Keraito/events{/privacy}","received_events_url":"https://api.github.com/users/Keraito/received_events","type":"User","site_admin":false},"labels":[{"id":584803996,"url":"https://api.github.com/repos/storybooks/storybook/labels/addon:%20knobs","name":"addon: knobs","color":"fbca04","default":false},{"id":343576454,"url":"https://api.github.com/repos/storybooks/storybook/labels/bug","name":"bug","color":"EB484F","default":true}],"state":"closed","locked":false,"assignee":{"login":"Hypnosphi","id":6651625,"avatar_url":"https://avatars3.githubusercontent.com/u/6651625?v=4","gravatar_id":"","url":"https://api.github.com/users/Hypnosphi","html_url":"https://github.com/Hypnosphi","followers_url":"https://api.github.com/users/Hypnosphi/followers","following_url":"https://api.github.com/users/Hypnosphi/following{/other_user}","gists_url":"https://api.github.com/users/Hypnosphi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypnosphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypnosphi/subscriptions","organizations_url":"https://api.github.com/users/Hypnosphi/orgs","repos_url":"https://api.github.com/users/Hypnosphi/repos","events_url":"https://api.github.com/users/Hypnosphi/events{/privacy}","received_events_url":"https://api.github.com/users/Hypnosphi/received_events","type":"User","site_admin":false},"assignees":[{"login":"Hypnosphi","id":6651625,"avatar_url":"https://avatars3.githubusercontent.com/u/6651625?v=4","gravatar_id":"","url":"https://api.github.com/users/Hypnosphi","html_url":"https://github.com/Hypnosphi","followers_url":"https://api.github.com/users/Hypnosphi/followers","following_url":"https://api.github.com/users/Hypnosphi/following{/other_user}","gists_url":"https://api.github.com/users/Hypnosphi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypnosphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypnosphi/subscriptions","organizations_url":"https://api.github.com/users/Hypnosphi/orgs","repos_url":"https://api.github.com/users/Hypnosphi/repos","events_url":"https://api.github.com/users/Hypnosphi/events{/privacy}","received_events_url":"https://api.github.com/users/Hypnosphi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-05-20T23:12:24Z","updated_at":"2018-05-27T10:41:14Z","closed_at":"2018-05-24T08:03:10Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/storybooks/storybook/pulls/3612","html_url":"https://github.com/storybooks/storybook/pull/3612","diff_url":"https://github.com/storybooks/storybook/pull/3612.diff","patch_url":"https://github.com/storybooks/storybook/pull/3612.patch"},"body":"Issue: While doing some work on fixing [an issue with the button knob discussed on Slack](https://storybooks.slack.com/archives/C55DBHZL0/p1526589520000555), I found out that the `boolean` knob's behaviour was also kind of broken: after the initial toggle the value of the knob would always return `undefined`. This was due to the incoming `change` object at https://github.com/storybooks/storybook/blob/master/addons/knobs/src/registerKnobs.js#L18 always being of the form: `{name: \"name-of-knob\", type: \"boolean\"}`, without a value. Easiest reproducible by adding a story with a boolean knob and just printing out its direct value.\r\n\r\n## What I did\r\nChange the behaviour when the incoming `change` object is of type `boolean`, to flip the current value.\r\n"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/392321326","html_url":"https://github.com/storybooks/storybook/pull/3612#issuecomment-392321326","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/3612","id":392321326,"user":{"login":"Hypnosphi","id":6651625,"avatar_url":"https://avatars3.githubusercontent.com/u/6651625?v=4","gravatar_id":"","url":"https://api.github.com/users/Hypnosphi","html_url":"https://github.com/Hypnosphi","followers_url":"https://api.github.com/users/Hypnosphi/followers","following_url":"https://api.github.com/users/Hypnosphi/following{/other_user}","gists_url":"https://api.github.com/users/Hypnosphi/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypnosphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypnosphi/subscriptions","organizations_url":"https://api.github.com/users/Hypnosphi/orgs","repos_url":"https://api.github.com/users/Hypnosphi/repos","events_url":"https://api.github.com/users/Hypnosphi/events{/privacy}","received_events_url":"https://api.github.com/users/Hypnosphi/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T10:41:14Z","updated_at":"2018-05-27T10:41:14Z","author_association":"MEMBER","body":"Released as [`4.0.0-alpha.8`](https://github.com/storybooks/storybook/releases/tag/v4.0.0-alpha.8)"}}
{"actor":{"display_login":"Hypnosphi"}}