react-truncate-html icon indicating copy to clipboard operation
react-truncate-html copied to clipboard

breakWord property doesn't work

Open jlbb opened this issue 8 years ago • 1 comments

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.

jlbb avatar Jun 08 '17 21:06 jlbb

+1

limqjoo avatar Feb 01 '18 02:02 limqjoo