react-truncate-html
react-truncate-html copied to clipboard
breakWord property doesn't work
Hi, when I try to use the breakWord property the console throws me an error as:
Uncaught (in promise) TypeError: Cannot read property 'ellipsis' of undefined
I have noticed that this is maybe a typo in your code or a bad reference to the ellipsis property, so checking your code where it says:
this.conf.ellipsis , conf doesn't exists in your code, so i guess that you meant this.props.ellipsis, and indeed after changing this in the code, it works like a charm.
So it would be nice if you fix this issue,in that case we could use your library out of the box ;)
Thanks.
+1