{"action":"closed","issue":{"url":"https://api.github.com/repos/networknt/react-schema-form/issues/45","repository_url":"https://api.github.com/repos/networknt/react-schema-form","labels_url":"https://api.github.com/repos/networknt/react-schema-form/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/networknt/react-schema-form/issues/45/comments","events_url":"https://api.github.com/repos/networknt/react-schema-form/issues/45/events","html_url":"https://github.com/networknt/react-schema-form/issues/45","id":230724104,"number":45,"title":"Number: onChangeValidate called twice","user":{"login":"stropitek","id":4118690,"avatar_url":"https://avatars0.githubusercontent.com/u/4118690?v=3","gravatar_id":"","url":"https://api.github.com/users/stropitek","html_url":"https://github.com/stropitek","followers_url":"https://api.github.com/users/stropitek/followers","following_url":"https://api.github.com/users/stropitek/following{/other_user}","gists_url":"https://api.github.com/users/stropitek/gists{/gist_id}","starred_url":"https://api.github.com/users/stropitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stropitek/subscriptions","organizations_url":"https://api.github.com/users/stropitek/orgs","repos_url":"https://api.github.com/users/stropitek/repos","events_url":"https://api.github.com/users/stropitek/events{/privacy}","received_events_url":"https://api.github.com/users/stropitek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-23T14:17:54Z","updated_at":"2017-05-24T06:19:55Z","closed_at":"2017-05-24T06:19:55Z","body":"The onModelChange callback is called twice on number fields.\r\n\r\nIt is due to the Number component calling `onChangeValidate` twice, once in the condition checking if the value is numeric, and a second time at the end of the function\r\n\r\nhttps://github.com/networknt/react-schema-form/blob/b083ae6ef601e411d2541a1f4598ec2603c147be/src/Number.js#L30-L41"}}
{"actor":{"display_login":"stropitek"}}