Skip to content
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

Enhance filterOption to Trigger During Character Composition (e.g., Korean Input) #8021

Open
1 task done
park-jeong-jin opened this issue Jan 17, 2025 · 0 comments
Open
1 task done

Comments

@park-jeong-jin
Copy link

park-jeong-jin commented Jan 17, 2025

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

I would like to request a feature enhancement for Ant Design Select.

It would be great if filterOption or onSearch could include a lazy option similar to what is available in Ant Design Input. Currently, when users are typing in Korean (or any other language requiring input composition), the filterOption is triggered during the composition process, which results in a suboptimal user experience.

Adding a lazy option to delay execution until input composition is complete would greatly improve usability in these scenarios.

Thank you for considering this request!

What does the proposed API look like?

<a-select :lazy="false" :filter-option="(str, opt) => opt.label.includes(str)" />
=> I would like the filterOption to execute even when a single composing character, such as ㅇ, is entered, including the composed character itself during the composition process. This would allow the filterOption to account for partially composed characters, improving usability for languages like Korean.

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

No branches or pull requests

1 participant