react-component / react-component/select

Entered tag deleted on second entry

Open
#994 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

Steps to reproduce:

  1. Type in a tags, for example apple
  2. Hit enter -> new tag is created OK
  3. Type second tag, in this case the same thing: apple
  4. Hit enter -> both tags are removed from the select.

I would expect to have 1 apple tag at the end, but instead both tags are removed.

You can reproduce the problem on the demo site: https://select-react-component.vercel.app/demo/tags

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reproducing the duplicate-entry behavior on the demo site's tags example, then trace the React Select tag-handling path in the repository. Done means entering the same tag twice leaves one apple tag selected instead of removing both tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.