diff --git a/src/TextTruncate.js b/src/TextTruncate.js index 80e4516..6f3c4dc 100644 --- a/src/TextTruncate.js +++ b/src/TextTruncate.js @@ -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