Skip to content

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

Closed
@park-jeong-jin

Description

@park-jeong-jin
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions