Alert: Thought is ellipsized when fewer than three characters are truncated

Open Beginner friendly
#5,283 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Search the TypeScript code for the alert text and ellipsizing logic, then reproduce the drag-and-drop case with “Los Angeles, CA” and “A”. The change is done when values are ellipsized only if at least three characters would be truncated, and the alert shows the full original value for this case.

Written by the indexing model from the issue text.

Description

bug

Steps to Reproduce

- A
- Los Angeles, CA
  1. Drag Los Angeles, CA and drop it onto A.

Current Behavior

The alert reads "Los Angeles, C..." moved to "A". A single character is truncated and replaced by a three-character ellipsis, so the ellipsized value (17 characters) is longer than the original (15).

Expected Behavior

A value is ellipsized only when at least three characters are truncated, so that ellipsizing never lengthens the value. Los Angeles, CA is shown in full: "Los Angeles, CA" moved to "A".

Dominant language
TypeScript
Stars
356
Forks
141
Avg merge
23h 39m
Merged PRs (30d)
283

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cybersemics/em

All issues in cybersemics/em

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.