{"action":"closed","issue":{"url":"https://api.github.com/repos/rackerlabs/encore-ui/issues/748","labels_url":"https://api.github.com/repos/rackerlabs/encore-ui/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/rackerlabs/encore-ui/issues/748/comments","events_url":"https://api.github.com/repos/rackerlabs/encore-ui/issues/748/events","html_url":"https://github.com/rackerlabs/encore-ui/issues/748","id":55179442,"number":748,"title":"Bug with transcluded content with rxFormItem","user":{"login":"CITguy","id":545605,"avatar_url":"https://avatars.githubusercontent.com/u/545605?v=3","gravatar_id":"","url":"https://api.github.com/users/CITguy","html_url":"https://github.com/CITguy","followers_url":"https://api.github.com/users/CITguy/followers","following_url":"https://api.github.com/users/CITguy/following{/other_user}","gists_url":"https://api.github.com/users/CITguy/gists{/gist_id}","starred_url":"https://api.github.com/users/CITguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CITguy/subscriptions","organizations_url":"https://api.github.com/users/CITguy/orgs","repos_url":"https://api.github.com/users/CITguy/repos","events_url":"https://api.github.com/users/CITguy/events{/privacy}","received_events_url":"https://api.github.com/users/CITguy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackerlabs/encore-ui/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/rackerlabs/encore-ui/labels/effort:high","name":"effort:high","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rackerlabs/encore-ui/milestones/11","html_url":"https://github.com/rackerlabs/encore-ui/milestones/rxForm%20improvements","labels_url":"https://api.github.com/repos/rackerlabs/encore-ui/milestones/11/labels","id":1137020,"number":11,"title":"rxForm improvements","description":"Revamp/Overhaul of form-related components.","creator":{"login":"CITguy","id":545605,"avatar_url":"https://avatars.githubusercontent.com/u/545605?v=3","gravatar_id":"","url":"https://api.github.com/users/CITguy","html_url":"https://github.com/CITguy","followers_url":"https://api.github.com/users/CITguy/followers","following_url":"https://api.github.com/users/CITguy/following{/other_user}","gists_url":"https://api.github.com/users/CITguy/gists{/gist_id}","starred_url":"https://api.github.com/users/CITguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CITguy/subscriptions","organizations_url":"https://api.github.com/users/CITguy/orgs","repos_url":"https://api.github.com/users/CITguy/repos","events_url":"https://api.github.com/users/CITguy/events{/privacy}","received_events_url":"https://api.github.com/users/CITguy/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":8,"state":"open","created_at":"2015-05-27T22:59:23Z","updated_at":"2015-06-04T23:32:15Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-01-22T17:03:43Z","updated_at":"2015-06-04T23:32:15Z","closed_at":"2015-06-04T23:32:15Z","body":"When using rxFormItem on `<input>` fields that are displayed based on a `ng-switch`, the `<span class='form-input'>` is not applied to the transcluded content.\r\n\r\nThis source code\r\n```html\r\n<rx-form-item label=\"Foobar\" ng-switch=\"'nothing'\">\r\n  <input ng-switch-when=\"nothing\" value=\"I'm nothing\" />\r\n</rx-form-item>\r\n```\r\n\r\nshould result in this expected output:\r\n```html\r\n<rx-form-item label=\"Foobar\" ng-switch=\"'nothing'\" class=\"ng-scope ng-isolate-scope\">\r\n  <div class=\"form-item\" ng-class=\"{'text-area-label': isTextArea}\">\r\n    <label class=\"field-label ng-binding\">Foobar:</label>\r\n    <div class=\"field-content\">\r\n      <!-- ngIf: prefix -->\r\n      <span class=\"field-input-wrapper\" ng-transclude=\"\">\r\n        <span class=\"field-input\">\r\n          <!-- ngSwitchWhen: nothing -->\r\n          <input ng-switch-when=\"nothing\" value=\"I'm nothing\" class=\"ng-scope\">\r\n        </span>\r\n      </span>\r\n      <!-- ngIf: description -->\r\n    </div>\r\n  </div>\r\n</rx-form-item>\r\n```\r\n\r\nbut it actually results in this output (missing `<span class=\"field-input\">...</span>`):\r\n```html\r\n<rx-form-item label=\"Foobar\" ng-switch=\"'nothing'\" class=\"ng-scope ng-isolate-scope\">\r\n  <div class=\"form-item\" ng-class=\"{'text-area-label': isTextArea}\">\r\n    <label class=\"field-label ng-binding\">Foobar:</label>\r\n    <div class=\"field-content\">\r\n      <!-- ngIf: prefix -->\r\n      <span class=\"field-input-wrapper\" ng-transclude=\"\">\r\n        <!-- ngSwitchWhen: nothing -->\r\n        <input ng-switch-when=\"nothing\" value=\"I'm nothing\" class=\"ng-scope\">\r\n      </span>\r\n      <!-- ngIf: description -->\r\n    </div>\r\n  </div>\r\n</rx-form-item>\r\n```\r\n"}}