Skip to content

Commit e11c4e5

Browse files
Merge branch 'master' of github.com:salesforce/design-system-react
2 parents 93b1184 + 73ae876 commit e11c4e5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/tree/private/branch.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ const handleKeyDownUp = (event, props) => {
114114

115115
const handleKeyDownRight = (event, props) => {
116116
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) {
121118
handleKeyDownDown(event, props);
122119
}
123120
} else {
@@ -134,11 +131,14 @@ const handleKeyDownLeft = (event, props) => {
134131
);
135132
const index = nodes.indexOf(props.parent);
136133
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+
},
142142
});
143143
}
144144
}

components/utilities/utility-icon/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const UtilityIcon = (
6868
return inlineData ? (
6969
<Svg data={inlineData} name={name} {...rest} />
7070
) : (
71-
<svg {...rest}>
71+
<svg key={`${name}_${category}`} {...rest}>
7272
<use xlinkHref={modifiedPath} />
7373
</svg>
7474
);

0 commit comments

Comments
 (0)