{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2504","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2504/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2504/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2504/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/2504","id":92684384,"number":2504,"title":"Form reset/clear","user":{"login":"beggiatom","id":8978624,"avatar_url":"https://avatars.githubusercontent.com/u/8978624?v=3","gravatar_id":"","url":"https://api.github.com/users/beggiatom","html_url":"https://github.com/beggiatom","followers_url":"https://api.github.com/users/beggiatom/followers","following_url":"https://api.github.com/users/beggiatom/following{/other_user}","gists_url":"https://api.github.com/users/beggiatom/gists{/gist_id}","starred_url":"https://api.github.com/users/beggiatom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beggiatom/subscriptions","organizations_url":"https://api.github.com/users/beggiatom/orgs","repos_url":"https://api.github.com/users/beggiatom/repos","events_url":"https://api.github.com/users/beggiatom/events{/privacy}","received_events_url":"https://api.github.com/users/beggiatom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/labels/Cannot%20Fix","name":"Cannot Fix","color":"bfdadc"},{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/labels/Enhancement","name":"Enhancement","color":"219a90"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/milestones/18","html_url":"https://github.com/Semantic-Org/Semantic-UI/milestones/2.0.x","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/milestones/18/labels","id":1189161,"number":18,"title":"2.0.x","description":"","creator":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":14,"state":"open","created_at":"2015-07-01T14:57:25Z","updated_at":"2015-07-06T18:23:42Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-02T16:55:45Z","updated_at":"2015-07-06T18:32:40Z","closed_at":null,"body":"Hi, I have a number of forms each with a different ID and a CLASS equal.\r\nIn version 1.x when I called the reset method on all forms of the page, the values returned to its original state, but with version 2.0.0, each field is cleared of any value including fields that had a value already set.\r\n\r\nInit form:\r\n\r\n```html\r\n<form class=\"reply-form\" id=\"form_1\">\r\n   <input type=\"hidden\" name=\"post_id\" value=\"1\"/>\r\n   <textarea name=\"message\"></textarea>\r\n</form>\r\n<form class=\"reply-form\" id=\"form_2\">\r\n   <input type=\"hidden\" name=\"post_id\" value=\"2\"/>\r\n   <textarea name=\"message\"></textarea>\r\n</form>\r\n```\r\n\r\njavascript reset\r\n```javascript\r\n$('form.reply-form').each(function() {\r\n    $(this).form('reset');\r\n})\r\n```\r\n\r\nIn 1.x version all good they return as \"init form\", while in 2.0.0 version forms become\r\n\r\n```html\r\n<form class=\"reply-form\" id=\"form_1\">\r\n   <input type=\"hidden\" name=\"post_id\" value=\"\"/>\r\n   <textarea name=\"message\"></textarea>\r\n</form>\r\n<form class=\"reply-form\" id=\"form_2\">\r\n   <input type=\"hidden\" name=\"post_id\" value=\"\"/>\r\n   <textarea name=\"message\"></textarea>\r\n</form>\r\n```\r\n\r\nIt is as if I had called the clear method.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/118950528","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/2504#issuecomment-118950528","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2504","id":118950528,"user":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T18:32:40Z","updated_at":"2015-07-06T18:32:40Z","body":"I've gone ahead and changed the default reset behavior to \"do nothing\" in this case, as oppose to abnormally clearing values."}}