Skip to content

Commit a6eb5c5

Browse files
olegstepurajavivelasco
authored andcommitted
ListItem legend may be a node as well (react-toolbox#1496)
Currently it works, but produces a warning by react typechecking
1 parent 4722904 commit a6eb5c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/list/ListItemContent.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const factory = (ListItemText) => {
1515
PropTypes.node,
1616
]),
1717
children: PropTypes.node,
18-
legend: PropTypes.string,
18+
legend: PropTypes.oneOfType([
19+
PropTypes.string,
20+
PropTypes.node,
21+
]),
1922
theme: PropTypes.shape({
2023
auto: PropTypes.string,
2124
itemContentRoot: PropTypes.string,

0 commit comments

Comments
 (0)