{"action":"created","issue":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/98","repository_url":"https://api.github.com/repos/1000hz/bootstrap-validator","labels_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/98/comments","events_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/98/events","html_url":"https://github.com/1000hz/bootstrap-validator/issues/98","id":65113418,"number":98,"title":"A space only is validating the field on keydown","user":{"login":"paulobranco","id":1510170,"avatar_url":"https://avatars.githubusercontent.com/u/1510170?v=3","gravatar_id":"","url":"https://api.github.com/users/paulobranco","html_url":"https://github.com/paulobranco","followers_url":"https://api.github.com/users/paulobranco/followers","following_url":"https://api.github.com/users/paulobranco/following{/other_user}","gists_url":"https://api.github.com/users/paulobranco/gists{/gist_id}","starred_url":"https://api.github.com/users/paulobranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulobranco/subscriptions","organizations_url":"https://api.github.com/users/paulobranco/orgs","repos_url":"https://api.github.com/users/paulobranco/repos","events_url":"https://api.github.com/users/paulobranco/events{/privacy}","received_events_url":"https://api.github.com/users/paulobranco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-03-30T01:04:55Z","updated_at":"2016-07-08T20:25:28Z","closed_at":null,"body":"I am not sure if should go under Question or enhancement suggestion.\r\n\r\nMy issue is if the user enter only a space on the field it shows as valid field until the the submittion of the form.\r\n\r\nIs there any parameter on this plugin that do not mark the field as valid if only spaces are entered?\r\n\r\nThanks, "},"comment":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/comments/231463683","html_url":"https://github.com/1000hz/bootstrap-validator/issues/98#issuecomment-231463683","issue_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/98","id":231463683,"user":{"login":"moribellamy","id":13877974,"avatar_url":"https://avatars.githubusercontent.com/u/13877974?v=3","gravatar_id":"","url":"https://api.github.com/users/moribellamy","html_url":"https://github.com/moribellamy","followers_url":"https://api.github.com/users/moribellamy/followers","following_url":"https://api.github.com/users/moribellamy/following{/other_user}","gists_url":"https://api.github.com/users/moribellamy/gists{/gist_id}","starred_url":"https://api.github.com/users/moribellamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moribellamy/subscriptions","organizations_url":"https://api.github.com/users/moribellamy/orgs","repos_url":"https://api.github.com/users/moribellamy/repos","events_url":"https://api.github.com/users/moribellamy/events{/privacy}","received_events_url":"https://api.github.com/users/moribellamy/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T20:25:27Z","updated_at":"2016-07-08T20:25:27Z","body":"@georgesunil81 I got around it by hacking the code in my local install:\r\n\r\n```\r\n  function getValue($el) {\r\n     return $el.is('[type=\"checkbox\"]') ? $el.prop('checked')                                     :\r\n            $el.is('[type=\"radio\"]')    ? !!$('[name=\"' + $el.attr('name') + '\"]:checked').length :\r\n            // HACK this used to be trimmed with $.trim()\r\n                                          $el.val()\r\n   }\r\n```\r\n\r\n"}}
{"actor":{"display_login":"moribellamy"}}