IME composition React open

rc-select: the Enter that confirms IME composition also selects an option

Enter that confirms an IME composition also selects the active option

rc-select · react-component/select

Symptom

The Enter used to commit an IME composition also selects the currently highlighted option in a searchable Select.

Minimal repro
1. Open a searchable <Select>.
2. Type a CJK query with the IME and press Enter to confirm the conversion.
3. The active option is selected with the unfinished query.
Fix

Track composition state (compositionstart/compositionend) and skip option selection while composing.

Fix PR → #rc-select-enter-ime-option

Also in: React

← all 93 entries