{"action":"created","issue":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/223","labels_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/223/comments","events_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/223/events","html_url":"https://github.com/react-bootstrap/react-bootstrap/issues/223","id":42191488,"number":223,"title":"Input ref in modal problem","user":{"login":"detrandix","id":659848,"avatar_url":"https://avatars.githubusercontent.com/u/659848?v=3","gravatar_id":"","url":"https://api.github.com/users/detrandix","html_url":"https://github.com/detrandix","followers_url":"https://api.github.com/users/detrandix/followers","following_url":"https://api.github.com/users/detrandix/following{/other_user}","gists_url":"https://api.github.com/users/detrandix/gists{/gist_id}","starred_url":"https://api.github.com/users/detrandix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detrandix/subscriptions","organizations_url":"https://api.github.com/users/detrandix/orgs","repos_url":"https://api.github.com/users/detrandix/repos","events_url":"https://api.github.com/users/detrandix/events{/privacy}","received_events_url":"https://api.github.com/users/detrandix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-09-08T12:37:18Z","updated_at":"2015-04-29T03:41:26Z","closed_at":"2014-09-08T23:15:01Z","body":"Hello, in this code in `renderOverlay` function:\r\n```\r\n<Modal title=\"Modal Title\" onRequestHide={this.handleToggle}>\r\n    <div className=\"modal-body\">\r\n        <Input\r\n            type=\"text\"\r\n            defaultValue={this.props.defaultValue}\r\n            ref=\"input\" />\r\n    </div>\r\n    <div className=\"modal-footer\">\r\n        <Button onClick={this.handleToggle}>Close</Button>\r\n        <Button bsStyle=\"primary\" onClick={this.saveChange}>Save change</Button>\r\n    </div>\r\n</Modal>\r\n```\r\ni get following error: \r\n```\r\nUncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `re...<omitted>...f. \r\n```\r\n\r\nIs there any solution, how to ref input in modal body?"},"comment":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/comments/97296043","html_url":"https://github.com/react-bootstrap/react-bootstrap/issues/223#issuecomment-97296043","issue_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/223","id":97296043,"user":{"login":"mingfang","id":821695,"avatar_url":"https://avatars.githubusercontent.com/u/821695?v=3","gravatar_id":"","url":"https://api.github.com/users/mingfang","html_url":"https://github.com/mingfang","followers_url":"https://api.github.com/users/mingfang/followers","following_url":"https://api.github.com/users/mingfang/following{/other_user}","gists_url":"https://api.github.com/users/mingfang/gists{/gist_id}","starred_url":"https://api.github.com/users/mingfang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingfang/subscriptions","organizations_url":"https://api.github.com/users/mingfang/orgs","repos_url":"https://api.github.com/users/mingfang/repos","events_url":"https://api.github.com/users/mingfang/events{/privacy}","received_events_url":"https://api.github.com/users/mingfang/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T03:41:26Z","updated_at":"2015-04-29T03:41:26Z","body":"What exactly is the solution to this problem?\r\nThe two examples above is not very clear.\r\n"}}