Skip to content

Using the textarea in the AutoComplete component, Every time the Chinese input method is activated, there are problems with the input. #7403

@Odin-7

Description

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

Version

4.1.0

Environment

Google Chrome (121.0.6167.185)

Reproduction link

https://next.antdv.com/components/auto-complete-cn

Steps to reproduce

In version 4.1.2, there is an issue with input when using the textarea in the AutoComplete component. Every time the Chinese input method is activated, there are problems with the input.

What is expected?

The issue lies in word composition processing during Chinese input.

What is actually happening?

When entering Chinese, the input method progressively forms a complete Chinese character or word phrase through word composition processing. It waits for the user to confirm the input word or character before submitting it to the target element. When typing in English, each keystroke triggers an input event. The difference between these two scenarios requires special handling in the code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions