tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

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

Open wtina opened this issue 1 year ago • 2 comments

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

wtina avatar Jun 03 '24 11:06 wtina

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

该问题需要修复

shenjunjian avatar Aug 01 '24 01:08 shenjunjian

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

Issues-translate-bot avatar Aug 01 '24 01:08 Issues-translate-bot

测试 3.20版本, 场景1,3都没问题了, 场景2再次enter 会自动替换成最后一个元素

shenjunjian avatar Jan 06 '25 11:01 shenjunjian

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


Testing version 3.20, Scenarios 1 and 3 are no problem. Scenario 2 will be automatically replaced with the last element when enter again.

Issues-translate-bot avatar Jan 06 '25 11:01 Issues-translate-bot