-
Notifications
You must be signed in to change notification settings - Fork 21
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
On searching parent node is not unfolding #49
Comments
Are you seeing an error or something? From just looking at the code, I see that there's extra expaces between the "=" symbol as well as an extra Instead of |
You can go to https://hassanali.me/material-ui-treeview/ and then click on "View Code" for an example. |
In
is definiely wrong since
|
I recognized that should be true and made it true but still nothing changed Please check this sandbox link https://codesandbox.io/s/zen-surf-epnnn?fontsize=14&hidenavigation=1&theme=dark |
try again there is unsaved files |
Ah, ok I see your issue You can use the
|
But by doing this tree will be opened by default but i want tree to be closed on first render. I don't really want to display whole tree. |
I see. I don't think we expose a prop for that. There is however a workaround you can do https://codesandbox.io/s/recursing-lumiere-8dl9g. |
This looks great. Thanks |
On searching a child of a tree parent is not unfolding. Can you please look into this why it is
happening.
Below is thecode
import React,{Component} from 'react';
import './App.css';
import {tree} from './treedata'
import MuiTreeView from 'material-ui-treeview';
class App extends Component {
constructor(props) {
super(props);
this.state = { val : "" }
}
render() {
}
}
export default App;
The text was updated successfully, but these errors were encountered: