Skip to content

fix(select): When using the "dynamic option creation" feature of the Select component, selecting another option from the search results lead to the issue of search text remaining in the selection area. #7116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zby909
Copy link

@zby909 zby909 commented Jul 31, 2025

Purpose: Ensures that an option being created is only added to the list of created options when its value matches the value of the selected option.

The selected options below were all added through filterable
Before modification:
When selecting other options retrieved through the search, the search values remain in the options and accumulate more and more...
image

After modification:
Only newly created options that are successful will exist.
image

…ons," performing a search at this time cause residual search text issues.
Copy link

vercel bot commented Jul 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2025 7:01am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant