ellipsed icon indicating copy to clipboard operation
ellipsed copied to clipboard

sometimes get truncation by word instead of by line

Open jkester1986 opened this issue 6 years ago • 3 comments

I have noticed sometimes that when my preact component loads to the page, instead of truncating by number of lines it truncates by words. I put the ellipsis call inside componentDidMount() initially, but have tried several other places as well. I only see the issue when loading my component via other components, not when running the demo of my component.

jkester1986 avatar Dec 15 '17 21:12 jkester1986

Hi @jkester1986 👋 Can you please provide an example of one or two components that we can use to reproduce this? Haven't tried ellipsed with react yet (or preact, or others), but I'm interested in trying it, so I'm willing to look into this issue :)

pnicolli avatar Dec 21 '17 08:12 pnicolli

@jkester1986 Any update?

nzambello avatar Jul 27 '18 08:07 nzambello

Sorry, must have missed your first reply. The only time I saw the issue though was when I loaded one component into with another. The child component would truncate incorrectly sometimes in that case. It didn't really matter where I put the ellipsis call. Running a demo on just the child component itself worked perfectly fine. I unfortunately can't give an example of the components because they are things that we built at my place of employment

jkester1986 avatar Jul 27 '18 10:07 jkester1986