fix(composition): do not submit when user is composing#901
fix(composition): do not submit when user is composing#901
Conversation
"composing" is used on Japanese (and other CJK scripts) when typing on a qwerty or similar keyboard, showing something akin to autocomplete on iOS. You confirm a word by pressing enter, which shouldn't commit to a search. Still needs to be tested thoroughly, as it's possible we need to check isComposing earlier to prevent searching for the intermediate romanji characters. Fixes algolia/docsearch#1304 Fixes algolia/docsearch#1043
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ffe7771:
|
|
Thanks @Haroenv for opening this ticket, let's try to move it forward. From what I understand of this Should we consider not triggering any input event (no searches, no navigations, etc.) when a user is still composing? Looking at algolia/docsearch#1304, it seems confusing for users to have both autocompletes update at the same time, and that both seem to have focus and receive commands. It'd feel cleaner not to trigger anything when the user is in a composition session, and only do so when they exit it. Happy to hear opinions, cc @francoischalifour @Haroenv @dhayab. |
|
@sarahdayan I'm not familiar with accessibility regarding composing. This is the kind of feature that we shouldn't guess by ourselves, but rather follow accessibility recommendations for combobox/autocomplete experiences. |
|
This fix is integrated and tested in #1226. |
"composing" is used on Japanese (and other CJK scripts) when typing on a qwerty or similar keyboard, showing something akin to autocomplete on iOS. You confirm a word by pressing enter, which shouldn't commit to a search.
Still needs to be tested thoroughly, as it's possible we need to check isComposing earlier to prevent searching for the intermediate romaji characters.
Fixes algolia/docsearch#1304
Fixes algolia/docsearch#1043
Fixes #1135