{"action":"opened","issue":{"url":"https://api.github.com/repos/twisty/formsy-react-components/issues/78","repository_url":"https://api.github.com/repos/twisty/formsy-react-components","labels_url":"https://api.github.com/repos/twisty/formsy-react-components/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/twisty/formsy-react-components/issues/78/comments","events_url":"https://api.github.com/repos/twisty/formsy-react-components/issues/78/events","html_url":"https://github.com/twisty/formsy-react-components/issues/78","id":161810930,"number":78,"title":"\"Only a ReactOwner can have refs\" error when I use dev branch","user":{"login":"brsbilgic","id":1345559,"avatar_url":"https://avatars.githubusercontent.com/u/1345559?v=3","gravatar_id":"","url":"https://api.github.com/users/brsbilgic","html_url":"https://github.com/brsbilgic","followers_url":"https://api.github.com/users/brsbilgic/followers","following_url":"https://api.github.com/users/brsbilgic/following{/other_user}","gists_url":"https://api.github.com/users/brsbilgic/gists{/gist_id}","starred_url":"https://api.github.com/users/brsbilgic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brsbilgic/subscriptions","organizations_url":"https://api.github.com/users/brsbilgic/orgs","repos_url":"https://api.github.com/users/brsbilgic/repos","events_url":"https://api.github.com/users/brsbilgic/events{/privacy}","received_events_url":"https://api.github.com/users/brsbilgic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-22T23:41:03Z","updated_at":"2016-06-22T23:41:03Z","closed_at":null,"body":"I try to test new HOCs in dev branch but it throws \"Only a ReactOwner can have refs\" error.\r\n\r\nThis is the code piece that I implemented. \r\n\r\n\r\n```\r\nimport React from \"react\";\r\nimport {withRouter} from 'react-router';\r\nimport {Form} from \"formsy-react\";\r\nimport FRC from \"formsy-react-components\";\r\n\r\n\r\nclass MyFilter extends React.Component {\r\n    constructor(props) {\r\n        super(props);\r\n        this.state = {};\r\n    }\r\n\r\n    handleFilterChange(data) {\r\n        this.props.updateFilter(data);\r\n    }\r\n\r\n    render() {\r\n        return (\r\n            <Form onValidSubmit={this.handleFilterChange.bind(this)} formNoValidate>\r\n                <FRC.Input name=\"employer\" type=\"text\" layout=\"vertical\" value=\"\"  label=\"Employer\"/>\r\n                <button className=\"btn btn-primary\" type=\"submit\">Submit</button>\r\n            </Form>\r\n        )\r\n    }\r\n}\r\n```\r\n\r\nI've read closed issues and there was a similar one. However, the recent release works very well.\r\nThis only happens in dev branch. Just to note that I use browserify. This is task\r\n\r\n```\r\ngulp.task('browserify-app', function () {\r\n    console.log('Building JS...');\r\n    return browserify('./src/js/app.js')\r\n        .external(dependencies)\r\n        .transform(babelify, {presets: [\"es2015\", \"react\"]})\r\n        .transform(reactify)\r\n        .transform(globify)\r\n        .bundle()\r\n        .on('error', function (e) {\r\n            console.log(e.message);\r\n            this.emit('end');\r\n        })\r\n        .pipe(source('bundle-app.js'))\r\n        .pipe(buffer())\r\n        .pipe(gulp.dest('./dist/js/'))\r\n        .pipe(livereload());\r\n});\r\n```\r\n\r\n"}}
{"actor":{"display_login":"brsbilgic"}}