File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import IconSettings from '../../icon-settings';
8
8
import { TREE } from '../../../utilities/constants' ;
9
9
import sampleNodes from '../../../utilities/sample-data/tree' ;
10
10
11
-
12
11
import Tree from '../../tree' ;
13
12
import Search from '../../forms/input/search' ;
14
13
Original file line number Diff line number Diff line change @@ -38,10 +38,7 @@ const flattenTree = (root, treeIndex = '') => {
38
38
for ( let index = 0 ; index < root . nodes . length ; index ++ ) {
39
39
const curNode = root . nodes [ index ] ;
40
40
nodes = nodes . concat (
41
- flattenTree (
42
- curNode ,
43
- treeIndex ? `${ treeIndex } -${ index } ` : `${ index } `
44
- )
41
+ flattenTree ( curNode , treeIndex ? `${ treeIndex } -${ index } ` : `${ index } ` )
45
42
) ;
46
43
}
47
44
}
@@ -121,19 +118,19 @@ class Tree extends React.Component {
121
118
focusedNodeIndex : data . treeIndex ,
122
119
selectedNodeIndexes,
123
120
} ) ;
124
- }
121
+ } ;
125
122
126
123
handleNodeBlur = ( ) => {
127
124
// There is no need to render when blurring a node because focus is either:
128
125
// - outside of the tree, or
129
126
// - focused on another node in the tree, which triggers its own render
130
127
this . treeHasFocus = false ;
131
- }
128
+ } ;
132
129
133
130
handleExpand = ( event , data ) => {
134
131
this . treeHasFocus = true ;
135
132
this . props . onExpandClick ( event , data ) ;
136
- }
133
+ } ;
137
134
138
135
render ( ) {
139
136
// One of these is required to pass accessibility tests
You can’t perform that action at this time.
0 commit comments