Skip to content

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

@Gkrumbach07

Description

@Gkrumbach07

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions