{"action":"created","issue":{"url":"https://api.github.com/repos/hyperoslo/Form/issues/513","repository_url":"https://api.github.com/repos/hyperoslo/Form","labels_url":"https://api.github.com/repos/hyperoslo/Form/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/hyperoslo/Form/issues/513/comments","events_url":"https://api.github.com/repos/hyperoslo/Form/issues/513/events","html_url":"https://github.com/hyperoslo/Form/pull/513","id":139554490,"number":513,"title":"Don't reset field positions when hiding fields","user":{"login":"zenangst","id":57446,"avatar_url":"https://avatars.githubusercontent.com/u/57446?v=3","gravatar_id":"","url":"https://api.github.com/users/zenangst","html_url":"https://github.com/zenangst","followers_url":"https://api.github.com/users/zenangst/followers","following_url":"https://api.github.com/users/zenangst/following{/other_user}","gists_url":"https://api.github.com/users/zenangst/gists{/gist_id}","starred_url":"https://api.github.com/users/zenangst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenangst/subscriptions","organizations_url":"https://api.github.com/users/zenangst/orgs","repos_url":"https://api.github.com/users/zenangst/repos","events_url":"https://api.github.com/users/zenangst/events{/privacy}","received_events_url":"https://api.github.com/users/zenangst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-09T11:45:18Z","updated_at":"2016-03-09T18:40:18Z","closed_at":"2016-03-09T12:03:18Z","pull_request":{"url":"https://api.github.com/repos/hyperoslo/Form/pulls/513","html_url":"https://github.com/hyperoslo/Form/pull/513","diff_url":"https://github.com/hyperoslo/Form/pull/513.diff","patch_url":"https://github.com/hyperoslo/Form/pull/513.patch"},"body":"We were experiencing issues with showing hidden fields. They ended up in the wrong position because Form mutates the state after the field becomes hidden, so if you hide two fields in a sequence and try to show them again, the end up being displayed in the wrong order.\r\n\r\nThis PR removes the reset of positions when hiding fields, tests pass and our internal testing has shown positive results that this won’t blow up.\r\n\r\n![chkb0fsuwaizqy5](https://cloud.githubusercontent.com/assets/57446/13634273/cf0cfb34-e5f4-11e5-921d-5624042b19ed.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/hyperoslo/Form/issues/comments/194443435","html_url":"https://github.com/hyperoslo/Form/pull/513#issuecomment-194443435","issue_url":"https://api.github.com/repos/hyperoslo/Form/issues/513","id":194443435,"user":{"login":"3lvis","id":1088217,"avatar_url":"https://avatars.githubusercontent.com/u/1088217?v=3","gravatar_id":"","url":"https://api.github.com/users/3lvis","html_url":"https://github.com/3lvis","followers_url":"https://api.github.com/users/3lvis/followers","following_url":"https://api.github.com/users/3lvis/following{/other_user}","gists_url":"https://api.github.com/users/3lvis/gists{/gist_id}","starred_url":"https://api.github.com/users/3lvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3lvis/subscriptions","organizations_url":"https://api.github.com/users/3lvis/orgs","repos_url":"https://api.github.com/users/3lvis/repos","events_url":"https://api.github.com/users/3lvis/events{/privacy}","received_events_url":"https://api.github.com/users/3lvis/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T18:40:18Z","updated_at":"2016-03-09T18:40:18Z","body":":scream: "}}