ElemeFE / ElemeFE/element

[Bug Report] Duplicate Tag Creation Clears All Instances of the Tag in element select Component

Open
#22,896 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.14

### OS/Browsers version
Google Chrome 125.0.6422.142 arm64

### Vue version
2.7.16

### Reproduction Link
https://codepen.io/lzbghwut-the-typescripter/pen/NWVwdNL

### Steps to reproduce
1. Use the select component with the option to create new tags enabled.
2. Add a new tag that already exists in the list.

### What is Expected?
When attempting to create a tag that already exists, the original tags should be preserved and no duplicates should be created.

### What is actually happening?
All instances of the existing tag are cleared from the list.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.