You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
By outputting the value of e.target.composing separately under English and Chinese input methods, it can be confirmed that the issue is indeed caused by the word composition process in Chinese input method.
The handleKeyPress event is not being triggered correctly in the Chinese input method state.
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.
The text was updated successfully, but these errors were encountered: