{"action":"created","comment":{"url":"https://api.github.com/repos/react-component/input-number/pulls/comments/41824793","id":41824793,"diff_hunk":"@@ -68,6 +68,8 @@ const InputNumber = React.createClass({\n         }\n       }\n       this.setValue(val);\n+    } else if (val === '-') {\n+      this.setValue(val);","path":"src/InputNumber.js","position":5,"original_position":5,"commit_id":"a75f68e6ddd6e2e79b05eb27748322487476373a","original_commit_id":"a75f68e6ddd6e2e79b05eb27748322487476373a","user":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"body":"只 setState 就行了，不要触发 change","created_at":"2015-10-13T03:58:20Z","updated_at":"2015-10-13T03:58:20Z","html_url":"https://github.com/react-component/input-number/pull/5#discussion_r41824793","pull_request_url":"https://api.github.com/repos/react-component/input-number/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/react-component/input-number/pulls/comments/41824793"},"html":{"href":"https://github.com/react-component/input-number/pull/5#discussion_r41824793"},"pull_request":{"href":"https://api.github.com/repos/react-component/input-number/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/react-component/input-number/pulls/5","id":47488742,"html_url":"https://github.com/react-component/input-number/pull/5","diff_url":"https://github.com/react-component/input-number/pull/5.diff","patch_url":"https://github.com/react-component/input-number/pull/5.patch","issue_url":"https://api.github.com/repos/react-component/input-number/issues/5","number":5,"state":"open","locked":false,"title":"Allow input negative symbol","user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"body":"允许直接输入负数。","created_at":"2015-10-13T03:56:06Z","updated_at":"2015-10-13T03:58:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c71c3410f8e1898aa824c7b215ae3f91abcf5f5","assignee":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/react-component/input-number/pulls/5/commits","review_comments_url":"https://api.github.com/repos/react-component/input-number/pulls/5/comments","review_comment_url":"https://api.github.com/repos/react-component/input-number/pulls/comments{/number}","comments_url":"https://api.github.com/repos/react-component/input-number/issues/5/comments","statuses_url":"https://api.github.com/repos/react-component/input-number/statuses/a75f68e6ddd6e2e79b05eb27748322487476373a","head":{"label":"react-component:negative-number-input","ref":"negative-number-input","sha":"a75f68e6ddd6e2e79b05eb27748322487476373a","user":{"login":"react-component","id":9441414,"avatar_url":"https://avatars.githubusercontent.com/u/9441414?v=3","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"repo":{"id":33909864,"name":"input-number","full_name":"react-component/input-number","owner":{"login":"react-component","id":9441414,"avatar_url":"https://avatars.githubusercontent.com/u/9441414?v=3","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-component/input-number","description":"React Input Number","fork":false,"url":"https://api.github.com/repos/react-component/input-number","forks_url":"https://api.github.com/repos/react-component/input-number/forks","keys_url":"https://api.github.com/repos/react-component/input-number/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-component/input-number/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-component/input-number/teams","hooks_url":"https://api.github.com/repos/react-component/input-number/hooks","issue_events_url":"https://api.github.com/repos/react-component/input-number/issues/events{/number}","events_url":"https://api.github.com/repos/react-component/input-number/events","assignees_url":"https://api.github.com/repos/react-component/input-number/assignees{/user}","branches_url":"https://api.github.com/repos/react-component/input-number/branches{/branch}","tags_url":"https://api.github.com/repos/react-component/input-number/tags","blobs_url":"https://api.github.com/repos/react-component/input-number/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-component/input-number/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-component/input-number/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-component/input-number/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-component/input-number/statuses/{sha}","languages_url":"https://api.github.com/repos/react-component/input-number/languages","stargazers_url":"https://api.github.com/repos/react-component/input-number/stargazers","contributors_url":"https://api.github.com/repos/react-component/input-number/contributors","subscribers_url":"https://api.github.com/repos/react-component/input-number/subscribers","subscription_url":"https://api.github.com/repos/react-component/input-number/subscription","commits_url":"https://api.github.com/repos/react-component/input-number/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-component/input-number/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-component/input-number/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-component/input-number/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-component/input-number/contents/{+path}","compare_url":"https://api.github.com/repos/react-component/input-number/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-component/input-number/merges","archive_url":"https://api.github.com/repos/react-component/input-number/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-component/input-number/downloads","issues_url":"https://api.github.com/repos/react-component/input-number/issues{/number}","pulls_url":"https://api.github.com/repos/react-component/input-number/pulls{/number}","milestones_url":"https://api.github.com/repos/react-component/input-number/milestones{/number}","notifications_url":"https://api.github.com/repos/react-component/input-number/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-component/input-number/labels{/name}","releases_url":"https://api.github.com/repos/react-component/input-number/releases{/id}","created_at":"2015-04-14T04:01:00Z","updated_at":"2015-09-12T14:31:56Z","pushed_at":"2015-10-13T03:56:06Z","git_url":"git://github.com/react-component/input-number.git","ssh_url":"git@github.com:react-component/input-number.git","clone_url":"https://github.com/react-component/input-number.git","svn_url":"https://github.com/react-component/input-number","homepage":null,"size":688,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":8,"default_branch":"master"}},"base":{"label":"react-component:master","ref":"master","sha":"00174e0afb6ba071b06fcb1e4dcb25f27a18bc29","user":{"login":"react-component","id":9441414,"avatar_url":"https://avatars.githubusercontent.com/u/9441414?v=3","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"repo":{"id":33909864,"name":"input-number","full_name":"react-component/input-number","owner":{"login":"react-component","id":9441414,"avatar_url":"https://avatars.githubusercontent.com/u/9441414?v=3","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-component/input-number","description":"React Input Number","fork":false,"url":"https://api.github.com/repos/react-component/input-number","forks_url":"https://api.github.com/repos/react-component/input-number/forks","keys_url":"https://api.github.com/repos/react-component/input-number/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-component/input-number/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-component/input-number/teams","hooks_url":"https://api.github.com/repos/react-component/input-number/hooks","issue_events_url":"https://api.github.com/repos/react-component/input-number/issues/events{/number}","events_url":"https://api.github.com/repos/react-component/input-number/events","assignees_url":"https://api.github.com/repos/react-component/input-number/assignees{/user}","branches_url":"https://api.github.com/repos/react-component/input-number/branches{/branch}","tags_url":"https://api.github.com/repos/react-component/input-number/tags","blobs_url":"https://api.github.com/repos/react-component/input-number/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-component/input-number/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-component/input-number/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-component/input-number/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-component/input-number/statuses/{sha}","languages_url":"https://api.github.com/repos/react-component/input-number/languages","stargazers_url":"https://api.github.com/repos/react-component/input-number/stargazers","contributors_url":"https://api.github.com/repos/react-component/input-number/contributors","subscribers_url":"https://api.github.com/repos/react-component/input-number/subscribers","subscription_url":"https://api.github.com/repos/react-component/input-number/subscription","commits_url":"https://api.github.com/repos/react-component/input-number/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-component/input-number/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-component/input-number/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-component/input-number/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-component/input-number/contents/{+path}","compare_url":"https://api.github.com/repos/react-component/input-number/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-component/input-number/merges","archive_url":"https://api.github.com/repos/react-component/input-number/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-component/input-number/downloads","issues_url":"https://api.github.com/repos/react-component/input-number/issues{/number}","pulls_url":"https://api.github.com/repos/react-component/input-number/pulls{/number}","milestones_url":"https://api.github.com/repos/react-component/input-number/milestones{/number}","notifications_url":"https://api.github.com/repos/react-component/input-number/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-component/input-number/labels{/name}","releases_url":"https://api.github.com/repos/react-component/input-number/releases{/id}","created_at":"2015-04-14T04:01:00Z","updated_at":"2015-09-12T14:31:56Z","pushed_at":"2015-10-13T03:56:06Z","git_url":"git://github.com/react-component/input-number.git","ssh_url":"git@github.com:react-component/input-number.git","clone_url":"https://github.com/react-component/input-number.git","svn_url":"https://github.com/react-component/input-number","homepage":null,"size":688,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/react-component/input-number/pulls/5"},"html":{"href":"https://github.com/react-component/input-number/pull/5"},"issue":{"href":"https://api.github.com/repos/react-component/input-number/issues/5"},"comments":{"href":"https://api.github.com/repos/react-component/input-number/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/react-component/input-number/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/react-component/input-number/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/react-component/input-number/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/react-component/input-number/statuses/a75f68e6ddd6e2e79b05eb27748322487476373a"}}}}