File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,7 @@ const handleKeyDownUp = (event, props) => {
114
114
115
115
const handleKeyDownRight = ( event , props ) => {
116
116
if ( props . node . expanded ) {
117
- if (
118
- this . props . getNodes ( props . node ) &&
119
- this . props . getNodes ( props . node ) . length > 0
120
- ) {
117
+ if ( props . getNodes ( props . node ) && props . getNodes ( props . node ) . length > 0 ) {
121
118
handleKeyDownDown ( event , props ) ;
122
119
}
123
120
} else {
@@ -134,11 +131,14 @@ const handleKeyDownLeft = (event, props) => {
134
131
) ;
135
132
const index = nodes . indexOf ( props . parent ) ;
136
133
if ( index !== - 1 ) {
137
- props . onExpand ( event , {
138
- node : props . parent ,
139
- select : true ,
140
- expand : ! props . parent . expanded ,
141
- treeIndex : props . flattenedNodes [ index ] . treeIndex ,
134
+ props . onExpand ( {
135
+ event,
136
+ data : {
137
+ node : props . parent ,
138
+ select : true ,
139
+ expand : ! props . parent . expanded ,
140
+ treeIndex : props . flattenedNodes [ index ] . treeIndex ,
141
+ } ,
142
142
} ) ;
143
143
}
144
144
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ const UtilityIcon = (
68
68
return inlineData ? (
69
69
< Svg data = { inlineData } name = { name } { ...rest } />
70
70
) : (
71
- < svg { ...rest } >
71
+ < svg key = { ` ${ name } _ ${ category } ` } { ...rest } >
72
72
< use xlinkHref = { modifiedPath } />
73
73
</ svg >
74
74
) ;
You can’t perform that action at this time.
0 commit comments