Skip to content

Commit 04f6806

Browse files
authored
Merge pull request #2075 from jimmywim/issue-2074
Issue 2074 - Pass through ImageProps to TreeItem's Icon
2 parents cf59ca4 + 00540d5 commit 04f6806

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controls/treeView/TreeItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export default class TreeItem extends React.Component<ITreeItemProps, ITreeItemS
198198
// Rendering when item has iconProps
199199
item.iconProps &&
200200
<span>
201-
<Icon className={styles.icon} iconName={item.iconProps.iconName} style={item.iconProps.style} theme={this.props.theme} />
201+
<Icon className={styles.icon} iconName={item.iconProps.iconName} style={item.iconProps.style} theme={this.props.theme} imageProps={item.iconProps.imageProps} />
202202
&nbsp;
203203
</span>
204204
}

0 commit comments

Comments
 (0)