{"action":"opened","issue":{"url":"https://api.github.com/repos/callemall/material-ui/issues/3027","labels_url":"https://api.github.com/repos/callemall/material-ui/issues/3027/labels{/name}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/3027/comments","events_url":"https://api.github.com/repos/callemall/material-ui/issues/3027/events","html_url":"https://github.com/callemall/material-ui/issues/3027","id":128369676,"number":3027,"title":"a Text Field multiLine problem","user":{"login":"liekkas","id":778747,"avatar_url":"https://avatars.githubusercontent.com/u/778747?v=3","gravatar_id":"","url":"https://api.github.com/users/liekkas","html_url":"https://github.com/liekkas","followers_url":"https://api.github.com/users/liekkas/followers","following_url":"https://api.github.com/users/liekkas/following{/other_user}","gists_url":"https://api.github.com/users/liekkas/gists{/gist_id}","starred_url":"https://api.github.com/users/liekkas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liekkas/subscriptions","organizations_url":"https://api.github.com/users/liekkas/orgs","repos_url":"https://api.github.com/users/liekkas/repos","events_url":"https://api.github.com/users/liekkas/events{/privacy}","received_events_url":"https://api.github.com/users/liekkas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-24T03:27:40Z","updated_at":"2016-01-24T03:27:40Z","closed_at":null,"body":"#### The desc:\r\n\r\nwhen the local mode is selected by default,it's perfect:\r\n![snip20160124_4](https://cloud.githubusercontent.com/assets/778747/12534224/8bc0ef40-c289-11e5-8f8d-4fc2d918cfb0.png)\r\n\r\nhowever, if the remote mode is selected by default , and then switch to local mode,it's bad(just show one row text):\r\n![snip20160124_3](https://cloud.githubusercontent.com/assets/778747/12534219/798cd35c-c289-11e5-8dea-1b1ef5785360.png)\r\n#### The code:\r\n```\r\nimport React, { PropTypes } from 'react';\r\nimport { TextField, RadioButtonGroup, RadioButton } from 'material-ui';\r\n\r\nclass Mui extends React.Component {\r\n  constructor(props) {\r\n    super(props);\r\n    this.state = {\r\n      mode: props.mode,\r\n    };\r\n  }\r\n\r\n  render() {\r\n    const { mode, remoteDataUrl, localData } = this.props;\r\n    return (\r\n      <div style={{ padding: '4rem'}}>\r\n          <RadioButtonGroup name=\"mode\" defaultSelected={mode}\r\n                            onChange={(event, selected) => this.setState({ mode: selected })}>\r\n            <RadioButton\r\n              value=\"local\"\r\n              label=\"Local Mode\" />\r\n            <RadioButton\r\n              value=\"remote\"\r\n              label=\"Remote Mode\" />\r\n          </RadioButtonGroup>\r\n          <TextField ref=\"remoteDataUrl\"\r\n                     style={{ display: this.state.mode === 'local' ? 'none' : '', }}\r\n                     hintText=\"remote data url\"\r\n                     fullWidth={true}\r\n                     defaultValue={remoteDataUrl}\r\n                     floatingLabelText=\"Remote Data Url\" />\r\n          <TextField ref=\"localData\"\r\n                     style={{ display: this.state.mode === 'remote' ? 'none' : '', }}\r\n                     multiLine={true}\r\n                     fullWidth={true}\r\n                     rows={4}\r\n                     rowsMax={8}\r\n                     hintText=\"local data text\"\r\n                     defaultValue={localData}\r\n                     floatingLabelText=\"Local Data Text\"/>\r\n      </div>\r\n    );\r\n  }\r\n}\r\n\r\nMui.propTypes = {\r\n  mode: PropTypes.string.isRequired,\r\n  remoteDataUrl: PropTypes.string.isRequired,\r\n  localData: PropTypes.string.isRequired,\r\n};\r\nMui.defaultProps = {\r\n  mode: 'local',\r\n  remoteDataUrl: 'http://a.b/c',\r\n  localData: JSON.stringify({\r\n    title: 'Title',\r\n    name: 'Name',\r\n  },null,'\\t'),\r\n};\r\n\r\nexport default Mui;\r\n\r\n```\r\n\r\n#### The env:\r\n* react 0.14.6\r\n* material-ui 0.14.2\r\n\r\n someone encountered such a problem?  thanks."}}