We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I've come across an interesting bug using this library.
Steps 1 : Add this code <HTMLEllipsis unsafeHTML='simple html content' maxLine="2" ellipsis="..." basedOn="letters" />
<HTMLEllipsis unsafeHTML='simple html content' maxLine="2" ellipsis="..." basedOn="letters" />
Step 2: Check in a web browser.
Chrome behavior : For the first time, It trims perfectly and display ... at line number 2. But When you reload the page It shows ... at line number 3.
...
Firefox and Safari behavior: It trims at line number 3 instead of line number 2.
Seems like, maxLine attribute doesn't work with even line number value(Ex: 2, 4, 6, 8 so on).
My browser details -
Please have a look into it .
Thank you!
The text was updated successfully, but these errors were encountered:
That sounds weird. Can you provide a online reproduction? https://stackblitz.com/edit/react-lines-ellipsis-2fjoj4 you can fork and edit this.
Sorry, something went wrong.
same, this component doesn't really work
No branches or pull requests
Hello,
I've come across an interesting bug using this library.
Steps 1 : Add this code
<HTMLEllipsis unsafeHTML='simple html content' maxLine="2" ellipsis="..." basedOn="letters" />
Step 2: Check in a web browser.
Chrome behavior :
For the first time, It trims perfectly and display
...
at line number 2. But When you reload the page It shows...
at line number 3.Firefox and Safari behavior:
It trims at line number 3 instead of line number 2.
Seems like, maxLine attribute doesn't work with even line number value(Ex: 2, 4, 6, 8 so on).
My browser details -
Please have a look into it .
Thank you!
The text was updated successfully, but these errors were encountered: