opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.67k stars 266 forks source link

🐛 [Bug]: select组件通过allow-create + filterable + default-first-option,Enter 键创建条目,再次输入enter选中的是上次的值 #1666

Open wtina opened 5 months ago

wtina commented 5 months ago

Version

latest

Vue Version

latest

Link to minimal reproduction

Step to reproduce

官网的例子即可复现,allow-create + filterable + default-first-option,Enter 键创建条目

What is expected

No response

What is actually happening

No response

What is your project name

hundsun

Any additional comments (optional)

No response

shenjunjian commented 3 months ago

场景1,2 ,每次创建新值就把旧值给覆盖掉了,只能创建1次 场景3, 可以新增多个,但最后一次的会覆盖掉前面创建的值,如下图 image

该问题需要修复

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.


Scenarios 1 and 2. Every time a new value is created, the old value is overwritten. It can only be created once. Scenario 3, you can add multiple new values, but the last one will overwrite the previously created value, as shown below image

This problem needs to be fixed