{"action":"created","issue":{"url":"https://api.github.com/repos/callemall/material-ui/issues/2699","labels_url":"https://api.github.com/repos/callemall/material-ui/issues/2699/labels{/name}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/2699/comments","events_url":"https://api.github.com/repos/callemall/material-ui/issues/2699/events","html_url":"https://github.com/callemall/material-ui/issues/2699","id":124240215,"number":2699,"title":"TextField doesn't support 'ref' ?","user":{"login":"dcsan","id":514002,"avatar_url":"https://avatars.githubusercontent.com/u/514002?v=3","gravatar_id":"","url":"https://api.github.com/users/dcsan","html_url":"https://github.com/dcsan","followers_url":"https://api.github.com/users/dcsan/followers","following_url":"https://api.github.com/users/dcsan/following{/other_user}","gists_url":"https://api.github.com/users/dcsan/gists{/gist_id}","starred_url":"https://api.github.com/users/dcsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcsan/subscriptions","organizations_url":"https://api.github.com/users/dcsan/orgs","repos_url":"https://api.github.com/users/dcsan/repos","events_url":"https://api.github.com/users/dcsan/events{/privacy}","received_events_url":"https://api.github.com/users/dcsan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-29T17:12:25Z","updated_at":"2015-12-29T18:32:40Z","closed_at":null,"body":"I'm defining a TextField component (within a card) which I pass a ref\r\nbut the ref isn't defined ...\r\n\r\n```\r\n<div ref='lessonDetailContainer'>\r\n...\r\n            <TextField\r\n              defaultValue={lessonData.vocab}\r\n              multiLine={true}\r\n              floatingLabelText='vocab'\r\n              ref='lessonVocab'\r\n            />\r\n</div>\r\n```\r\n\r\nHow are people making forms with material-ui? Just using the onChange events on every part of the form?\r\n\r\nFWIW the TextField is inside a Card/Form\r\nthe ref on the wrapper div works fine.\r\n\r\nlike the very second issue in this repo...\r\nhttps://github.com/callemall/material-ui/issues/2\r\n"},"comment":{"url":"https://api.github.com/repos/callemall/material-ui/issues/comments/167849323","html_url":"https://github.com/callemall/material-ui/issues/2699#issuecomment-167849323","issue_url":"https://api.github.com/repos/callemall/material-ui/issues/2699","id":167849323,"user":{"login":"dcsan","id":514002,"avatar_url":"https://avatars.githubusercontent.com/u/514002?v=3","gravatar_id":"","url":"https://api.github.com/users/dcsan","html_url":"https://github.com/dcsan","followers_url":"https://api.github.com/users/dcsan/followers","following_url":"https://api.github.com/users/dcsan/following{/other_user}","gists_url":"https://api.github.com/users/dcsan/gists{/gist_id}","starred_url":"https://api.github.com/users/dcsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcsan/subscriptions","organizations_url":"https://api.github.com/users/dcsan/orgs","repos_url":"https://api.github.com/users/dcsan/repos","events_url":"https://api.github.com/users/dcsan/events{/privacy}","received_events_url":"https://api.github.com/users/dcsan/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T18:32:40Z","updated_at":"2015-12-29T18:32:40Z","body":"i'm not sure if your PR will address this, but in trying to workaround, \r\nnone of the events send info in the parameters either:\r\n\r\n```\r\n            <TextField\r\n              defaultValue={this.data.topic.inherits}\r\n              floatingLabelText='inherits'\r\n              onChange={this.editTopic}\r\n            />\r\n```\r\n\r\n```\r\n  editTopic(evt, p1, p2, p3) {\r\n    evt.preventDefault();\r\n    Logger.loga(['editTopic', evt, p1, p2, p3], logfile);\r\n```\r\n\r\nwith onChange and onEnterKey there are no other values sent apart from the synthetic event.\r\njust p1, p2 etc are undefined. I think this is a regression?\r\n\r\nso we can't read via ref, or by using the component methods.\r\nthat makes it impossible to use these fields for anything other than display, afai can see?\r\n\r\nIs there another workaround to use these text fields for forms, or one event that does send the fields data along?\r\n\r\nthanks."}}