{"action":"created","issue":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1122","repository_url":"https://api.github.com/repos/guillaumepotier/Parsley.js","labels_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1122/labels{/name}","comments_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1122/comments","events_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1122/events","html_url":"https://github.com/guillaumepotier/Parsley.js/issues/1122","id":163419686,"number":1122,"title":"Class Handler don't remove error class neither message","user":{"login":"rruizf","id":1199740,"avatar_url":"https://avatars.githubusercontent.com/u/1199740?v=3","gravatar_id":"","url":"https://api.github.com/users/rruizf","html_url":"https://github.com/rruizf","followers_url":"https://api.github.com/users/rruizf/followers","following_url":"https://api.github.com/users/rruizf/following{/other_user}","gists_url":"https://api.github.com/users/rruizf/gists{/gist_id}","starred_url":"https://api.github.com/users/rruizf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruizf/subscriptions","organizations_url":"https://api.github.com/users/rruizf/orgs","repos_url":"https://api.github.com/users/rruizf/repos","events_url":"https://api.github.com/users/rruizf/events{/privacy}","received_events_url":"https://api.github.com/users/rruizf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-01T15:28:45Z","updated_at":"2016-07-05T13:38:16Z","closed_at":null,"body":"Hi, I create a simple form to test. Im using lastest versions of select2 and parsley.js.\r\n\r\n**HTML:**\r\n\r\n```\r\n<form id=\"frm\">\r\n  <div>\r\n  <label for=\"sel\">Label *</label>\r\n  <select id=\"sel\" data-parsley-errors-container=\"#sel_error\" data-parsley-class-handler=\".select2-selection\" required>\r\n    <option value=\"\"></option>\r\n    <option value=\"1\">Opt 1</option>\r\n    <option value=\"2\">Opt 2</option>\r\n    <option value=\"3\">Opt 3</option>\r\n    <option value=\"4\">Opt 4</option>\r\n  </select>\r\n  </div>\r\n  <div id=\"sel_error\"></div>\r\n  <button type=\"submit\">Send!</button>\r\n</form>\r\n```\r\n\r\nSelect2 library, hide the original select and add the next code:\r\n\r\n```\r\n<select id=\"sel\" data-parsley-errors-container=\"#sel_error\" data-parsley-class-handler=\".select2-selection\" required=\"\" tabindex=\"-1\" class=\"select2-hidden-accessible\" aria-hidden=\"true\" data-parsley-id=\"5\">\r\n    <option value=\"\"></option>\r\n    <option value=\"1\">Opt 1</option>\r\n    <option value=\"2\">Opt 2</option>\r\n    <option value=\"3\">Opt 3</option>\r\n    <option value=\"4\">Opt 4</option>\r\n</select>\r\n<span class=\"select2 select2-container select2-container--default\" dir=\"ltr\" style=\"width: 56px;\">\r\n    <span class=\"selection\">\r\n        <span class=\"select2-selection select2-selection--single parsley-error\" role=\"combobox\" aria-haspopup=\"true\" aria-expanded=\"false\" tabindex=\"0\" aria-labelledby=\"select2-sel-container\">\r\n            <span class=\"select2-selection__rendered\" id=\"select2-sel-container\">\r\n                <span class=\"select2-selection__placeholder\">Select one</span>\r\n            </span>\r\n            <span class=\"select2-selection__arrow\" role=\"presentation\">\r\n                <b role=\"presentation\"></b>\r\n            </span>\r\n        </span>\r\n    </span>\r\n    <span class=\"dropdown-wrapper\" aria-hidden=\"true\"></span>\r\n</span>\r\n```\r\n\r\nWhen I try to submit the form without select one item in the select, validation works fine and put class and message error in the right places (.select2-selection for class and #sel_error for message. Last option is because if I don't setup it, message error appears above select, not under #979)\r\nBut, if I select an option, class and error message don't dissapear.\r\nI was trying to use the function $('#sel').on('change') of select2 library, to remove them manually, but I don't know how I can check if the form or field were validated at last one time, cause if I select one item and then I unselect it, class and message appears without submit the form.\r\n"},"comment":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/comments/230480427","html_url":"https://github.com/guillaumepotier/Parsley.js/issues/1122#issuecomment-230480427","issue_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1122","id":230480427,"user":{"login":"rruizf","id":1199740,"avatar_url":"https://avatars.githubusercontent.com/u/1199740?v=3","gravatar_id":"","url":"https://api.github.com/users/rruizf","html_url":"https://github.com/rruizf","followers_url":"https://api.github.com/users/rruizf/followers","following_url":"https://api.github.com/users/rruizf/following{/other_user}","gists_url":"https://api.github.com/users/rruizf/gists{/gist_id}","starred_url":"https://api.github.com/users/rruizf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruizf/subscriptions","organizations_url":"https://api.github.com/users/rruizf/orgs","repos_url":"https://api.github.com/users/rruizf/repos","events_url":"https://api.github.com/users/rruizf/events{/privacy}","received_events_url":"https://api.github.com/users/rruizf/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T13:38:16Z","updated_at":"2016-07-05T13:38:16Z","body":"Any help?"}}
{"actor":{"display_login":"rruizf"}}