@@ -63,9 +63,6 @@ const styles = theme => ({
6363 maxWidth : '75vw' ,
6464 } ,
6565 expandIcon : { } ,
66- highlightItem : {
67- backgroundColor : 'rgb(138, 138, 138)' ,
68- } ,
6966} ) ;
7067
7168/**
@@ -85,8 +82,6 @@ class MuiTreeView extends Component {
8582 expansionPanelDetailsProps : object ,
8683 /** Properties applied to the ListItem element. */
8784 listItemProps : object ,
88- /** Id of a leaf which will be highlighted by adding the class */
89- highlightId : oneOfType [ ( string , number ) ] ,
9085 } ;
9186
9287 static defaultProps = {
@@ -95,7 +90,6 @@ class MuiTreeView extends Component {
9590 expansionPanelSummaryProps : null ,
9691 expansionPanelDetailsProps : null ,
9792 listItemProps : null ,
98- highlightId : null ,
9993 } ;
10094
10195 createFilteredTree = memoize (
@@ -123,7 +117,6 @@ class MuiTreeView extends Component {
123117 expansionPanelSummaryProps,
124118 expansionPanelDetailsProps,
125119 listItemProps,
126- highlightId,
127120 ...props
128121 } = this . props ;
129122 const value = this . getNodeValue ( node ) ;
@@ -147,7 +140,6 @@ class MuiTreeView extends Component {
147140 value = { value }
148141 onClick = { ( ) => this . handleLeafClick ( { value, parent, id } ) }
149142 button
150- classes = { highlightId === id ? { root : classes . highlightItem } : { } }
151143 { ...listItemProps } >
152144 < div className = { classes . text } > { value } </ div >
153145 </ ListItem >
0 commit comments