Skip to content

Commit

Permalink
fix: specify correct prop-type for textElement (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik authored Jan 28, 2022
1 parent 1c40eaa commit 30104cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextTruncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class TextTruncate extends Component {
onTruncated: PropTypes.func,
onToggled: PropTypes.func,
text: PropTypes.string,
textElement: PropTypes.node,
textElement: PropTypes.elementType,
textTruncateChild: PropTypes.node,
truncateText: PropTypes.string,
maxCalculateTimes: PropTypes.number
Expand Down

0 comments on commit 30104cf

Please sign in to comment.