{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/2082","repository_url":"https://api.github.com/repos/riot/riot","labels_url":"https://api.github.com/repos/riot/riot/issues/2082/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/2082/comments","events_url":"https://api.github.com/repos/riot/riot/issues/2082/events","html_url":"https://github.com/riot/riot/issues/2082","id":191165924,"number":2082,"title":"Class does not remove when value becomes false","user":{"login":"syuilo","id":4439005,"avatar_url":"https://avatars.githubusercontent.com/u/4439005?v=3","gravatar_id":"","url":"https://api.github.com/users/syuilo","html_url":"https://github.com/syuilo","followers_url":"https://api.github.com/users/syuilo/followers","following_url":"https://api.github.com/users/syuilo/following{/other_user}","gists_url":"https://api.github.com/users/syuilo/gists{/gist_id}","starred_url":"https://api.github.com/users/syuilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syuilo/subscriptions","organizations_url":"https://api.github.com/users/syuilo/orgs","repos_url":"https://api.github.com/users/syuilo/repos","events_url":"https://api.github.com/users/syuilo/events{/privacy}","received_events_url":"https://api.github.com/users/syuilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-23T01:02:28Z","updated_at":"2016-11-23T01:34:57Z","closed_at":null,"body":"## Help us to manage our issues by answering the following:\r\n\r\n### Describe your issue:\r\n\r\nClass does not remove when value becomes `false`.\r\n\r\nI think that behavior is against the explanation: `A shorthand syntax for class names is available: class={ completed: done } renders to class=\"completed\"when the value of done is a true value.`.\r\n\r\nThis bug(?) only encounter on `v3.0.0`.\r\n\r\nFor details, please refer to the examples below.\r\n\r\n### Can you reproduce the issue?\r\n\r\n***Yes, Compare behaviors:***\r\n\r\n**3.0.0:**\r\nhttp://jsfiddle.net/wf7bkvur/128/\r\n\r\n**2.x:**\r\nhttp://jsfiddle.net/wf7bkvur/127/\r\n\r\n### Which version of Riot does it affect?\r\n\r\nv3.0.0\r\n\r\n### How would you tag this issue?\r\n\r\n  - [ ] Question\r\n  - [x] Bug\r\n  - [ ] Discussion\r\n  - [ ] Feature request\r\n  - [ ] Tip\r\n  - [ ] Enhancement\r\n  - [ ] Performance\r\n\r\n---\r\n\r\n**Thanks, Great lib!** ❤️ cheers 🍺 \r\n"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/262415939","html_url":"https://github.com/riot/riot/issues/2082#issuecomment-262415939","issue_url":"https://api.github.com/repos/riot/riot/issues/2082","id":262415939,"user":{"login":"YoussefKababe","id":1650581,"avatar_url":"https://avatars.githubusercontent.com/u/1650581?v=3","gravatar_id":"","url":"https://api.github.com/users/YoussefKababe","html_url":"https://github.com/YoussefKababe","followers_url":"https://api.github.com/users/YoussefKababe/followers","following_url":"https://api.github.com/users/YoussefKababe/following{/other_user}","gists_url":"https://api.github.com/users/YoussefKababe/gists{/gist_id}","starred_url":"https://api.github.com/users/YoussefKababe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoussefKababe/subscriptions","organizations_url":"https://api.github.com/users/YoussefKababe/orgs","repos_url":"https://api.github.com/users/YoussefKababe/repos","events_url":"https://api.github.com/users/YoussefKababe/events{/privacy}","received_events_url":"https://api.github.com/users/YoussefKababe/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T01:34:57Z","updated_at":"2016-11-23T01:34:57Z","body":"I confirm! Also doing something like this won't remove the class when it's false:\r\n\r\n```javascript\r\nclass={ completed ? 'done' : '' }\r\n```\r\n\r\nI ended up doing this while waiting for it to be fixed, and it works:\r\n\r\n```javascript\r\nclass={ completed ? 'done' : 'undone' }\r\n```"}}
{"actor":{"display_login":"YoussefKababe"}}