jariz / jariz/react-truncate-html
breakWord property doesn't work
- Dominant language
- JavaScript
- Stars
- 50
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the breakWord implementation for the reported this.conf.ellipsis reference and trace how the ellipsis property is supplied. Confirm the correction by exercising breakWord and verifying that it no longer throws the reported error and truncates HTML as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100