{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-widgets/issues/219","labels_url":"https://api.github.com/repos/kartik-v/yii2-widgets/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-widgets/issues/219/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-widgets/issues/219/events","html_url":"https://github.com/kartik-v/yii2-widgets/issues/219","id":54327209,"number":219,"title":"switchinput won't show Off/false","user":{"login":"siliconalchemy","id":4799996,"avatar_url":"https://avatars.githubusercontent.com/u/4799996?v=3","gravatar_id":"","url":"https://api.github.com/users/siliconalchemy","html_url":"https://github.com/siliconalchemy","followers_url":"https://api.github.com/users/siliconalchemy/followers","following_url":"https://api.github.com/users/siliconalchemy/following{/other_user}","gists_url":"https://api.github.com/users/siliconalchemy/gists{/gist_id}","starred_url":"https://api.github.com/users/siliconalchemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siliconalchemy/subscriptions","organizations_url":"https://api.github.com/users/siliconalchemy/orgs","repos_url":"https://api.github.com/users/siliconalchemy/repos","events_url":"https://api.github.com/users/siliconalchemy/events{/privacy}","received_events_url":"https://api.github.com/users/siliconalchemy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kartik-v/yii2-widgets/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-14T14:23:49Z","updated_at":"2015-01-14T16:13:18Z","closed_at":"2015-01-14T14:34:36Z","body":"Switchinput never shows off value.  I'm using standard activefield widget:\r\n\r\n<?= $form->field($user->uxprefs, 'menu_collapsed')->widget(SwitchInput::classname()); ?>\r\n\r\nIt always shows On on page load.  If you switch off and save, the value gets saved to 0 in the database but switch is still rendered as On."},"comment":{"url":"https://api.github.com/repos/kartik-v/yii2-widgets/issues/comments/69941024","html_url":"https://github.com/kartik-v/yii2-widgets/issues/219#issuecomment-69941024","issue_url":"https://api.github.com/repos/kartik-v/yii2-widgets/issues/219","id":69941024,"user":{"login":"siliconalchemy","id":4799996,"avatar_url":"https://avatars.githubusercontent.com/u/4799996?v=3","gravatar_id":"","url":"https://api.github.com/users/siliconalchemy","html_url":"https://github.com/siliconalchemy","followers_url":"https://api.github.com/users/siliconalchemy/followers","following_url":"https://api.github.com/users/siliconalchemy/following{/other_user}","gists_url":"https://api.github.com/users/siliconalchemy/gists{/gist_id}","starred_url":"https://api.github.com/users/siliconalchemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siliconalchemy/subscriptions","organizations_url":"https://api.github.com/users/siliconalchemy/orgs","repos_url":"https://api.github.com/users/siliconalchemy/repos","events_url":"https://api.github.com/users/siliconalchemy/events{/privacy}","received_events_url":"https://api.github.com/users/siliconalchemy/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T16:13:18Z","updated_at":"2015-01-14T16:13:18Z","body":"I think i'm just using bootstrap tabs.  Apparently it's a bug in bootstrapSwitch:\r\n https://github.com/nostalgiaz/bootstrap-switch/issues/392\r\nI've replaced the assets in your widget with 3.3.1 and it works fine now :)"}}