react-clamp-lines icon indicating copy to clipboard operation
react-clamp-lines copied to clipboard

Dynamic text and strings without spaces in between words doesn't work

Open samilieberman opened this issue 1 year ago • 0 comments

When using react clamp lines with dynamic text or long strings without spaces, I noticed that the clamping functionality does not work properly. This calculation specifically: https://github.com/zoltantothcom/react-clamp-lines/blob/master/src/index.js#L105 does not cover scenarios when the text changes after initial render

samilieberman avatar Jul 11 '24 21:07 samilieberman