File tree Expand file tree Collapse file tree 3 files changed +5
-29
lines changed Expand file tree Collapse file tree 3 files changed +5
-29
lines changed Original file line number Diff line number Diff line change 5252 "react-dom" : " ^15.4.2" ,
5353 "webpack" : " ^2.2.1" ,
5454 "webpack-stream" : " ^3.2.0"
55+ },
56+ "dependencies" : {
57+ "shortid" : " ^2.2.6"
5558 }
5659}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import shortid from 'shortid' ;
23
34import TreeNode from './TreeNode' ;
45import nodeShape from './nodeShape' ;
5- import uniqueDomId from './uniqueDomId' ;
66
77class Tree extends React . Component {
88 static propTypes = {
@@ -42,7 +42,7 @@ class Tree extends React.Component {
4242 this . onCheck = this . onCheck . bind ( this ) ;
4343 this . onExpand = this . onExpand . bind ( this ) ;
4444
45- this . id = uniqueDomId ( ' rct' ) ;
45+ this . id = ` rct- ${ shortid . generate ( ) } ` ;
4646 }
4747
4848 onCheck ( node ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments