{"action":"created","issue":{"url":"https://api.github.com/repos/react-component/slider/issues/57","labels_url":"https://api.github.com/repos/react-component/slider/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/react-component/slider/issues/57/comments","events_url":"https://api.github.com/repos/react-component/slider/issues/57/events","html_url":"https://github.com/react-component/slider/issues/57","id":121223496,"number":57,"title":"Basic example doesn't even work","user":{"login":"tUrG0n","id":753950,"avatar_url":"https://avatars.githubusercontent.com/u/753950?v=3","gravatar_id":"","url":"https://api.github.com/users/tUrG0n","html_url":"https://github.com/tUrG0n","followers_url":"https://api.github.com/users/tUrG0n/followers","following_url":"https://api.github.com/users/tUrG0n/following{/other_user}","gists_url":"https://api.github.com/users/tUrG0n/gists{/gist_id}","starred_url":"https://api.github.com/users/tUrG0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tUrG0n/subscriptions","organizations_url":"https://api.github.com/users/tUrG0n/orgs","repos_url":"https://api.github.com/users/tUrG0n/repos","events_url":"https://api.github.com/users/tUrG0n/events{/privacy}","received_events_url":"https://api.github.com/users/tUrG0n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"benjycui","id":3580607,"avatar_url":"https://avatars.githubusercontent.com/u/3580607?v=3","gravatar_id":"","url":"https://api.github.com/users/benjycui","html_url":"https://github.com/benjycui","followers_url":"https://api.github.com/users/benjycui/followers","following_url":"https://api.github.com/users/benjycui/following{/other_user}","gists_url":"https://api.github.com/users/benjycui/gists{/gist_id}","starred_url":"https://api.github.com/users/benjycui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjycui/subscriptions","organizations_url":"https://api.github.com/users/benjycui/orgs","repos_url":"https://api.github.com/users/benjycui/repos","events_url":"https://api.github.com/users/benjycui/events{/privacy}","received_events_url":"https://api.github.com/users/benjycui/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-12-09T12:11:58Z","updated_at":"2015-12-11T08:31:25Z","closed_at":null,"body":"I'm on the latest version: `3.1.4` with `react@0.14.2`\r\n\r\nI can't get a simple basic slider to work without getting the following error:\r\n\r\n`Cannot read property 'toFixed' of undefined`\r\n\r\nAny clue what's this about? I need to apparently set the `marks` props... but that won't make it a basic slider right?"},"comment":{"url":"https://api.github.com/repos/react-component/slider/issues/comments/163874014","html_url":"https://github.com/react-component/slider/issues/57#issuecomment-163874014","issue_url":"https://api.github.com/repos/react-component/slider/issues/57","id":163874014,"user":{"login":"tUrG0n","id":753950,"avatar_url":"https://avatars.githubusercontent.com/u/753950?v=3","gravatar_id":"","url":"https://api.github.com/users/tUrG0n","html_url":"https://github.com/tUrG0n","followers_url":"https://api.github.com/users/tUrG0n/followers","following_url":"https://api.github.com/users/tUrG0n/following{/other_user}","gists_url":"https://api.github.com/users/tUrG0n/gists{/gist_id}","starred_url":"https://api.github.com/users/tUrG0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tUrG0n/subscriptions","organizations_url":"https://api.github.com/users/tUrG0n/orgs","repos_url":"https://api.github.com/users/tUrG0n/repos","events_url":"https://api.github.com/users/tUrG0n/events{/privacy}","received_events_url":"https://api.github.com/users/tUrG0n/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T08:31:25Z","updated_at":"2015-12-11T08:31:25Z","body":"I got my problem solved because i realised i had an problem specific to my project.\r\nBasically, the parent container containing the slider was being redrawing twice (once before i fetch data from my api, and the when the data is fetched). At the second instance, for some reason no value was passed to the slider which was causing closestPoints to be null.\r\nI solved it by simply refactoring my code, and having that slider redrawn once.\r\n\r\nHowever, i still face the problem when i use livereload. See it loads allright the first time but then with livereload, it breaks, forcing me to do a refresh.\r\n\r\nI think you jsfiddle is not realistic because u attach the slider to a reactdom. \r\nMaybe, if the demo attached the slider to a parent module, and then have some external thing going on, could help.\r\n\r\n@benjycui Bottom line, try and put ur slider under a component that get redrawn after a fetch. I think that could reproduce the problem."}}