patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Bug - [Truncate] - middle truncate renders wrong in some cases

Open Gkrumbach07 opened this issue 1 year ago • 0 comments

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 Screenshot 2024-08-14 at 11 28 52 AM

What is your environment?

  • OS: mac
  • Browser chrome
  • Version 127

What is your product and what release date are you targeting?

Any other information?

Gkrumbach07 avatar Aug 14 '24 16:08 Gkrumbach07