Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to add new node #10

Open
Vineeth-Mohan opened this issue Aug 3, 2016 · 1 comment
Open

Not able to add new node #10

Vineeth-Mohan opened this issue Aug 3, 2016 · 1 comment

Comments

@Vineeth-Mohan
Copy link

I made a small change to js/example.js and added the below code

ReactDOM.render(
React.createElement(TreeView, {data: data,allowNew: true,removable: true , onNodeAdded: function(){return true}}),
document.getElementById('treeview')
);

With this , i am able to see option to add new node. But on pressing "Add" , its emitting this error in the console.

On pressing "Plus" button -

Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).

After entering the text , on pressing "Add" button , nothing is happening.

@lynnchin
Copy link

Is this issue being fixed at your end? I am also encountering the same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants