patternfly-react
patternfly-react copied to clipboard
Bug - [Truncate] - middle truncate renders wrong in some cases
Describe the problem When you truncate with a certain number of trailing chars using the middle variant, it has this strange effect where chars are duplicated.
How do you reproduce the problem? https://codesandbox.io/p/sandbox/withered-haze-ry5nk4
Expected behavior It should not be truncating if number of chars is less than the trailing chars param
Is this issue blocking you? remove the trailing char param
Screenshots
What is your environment?
- OS: mac
- Browser chrome
- Version 127
What is your product and what release date are you targeting?
Any other information?