Problem/Motivation
From 8.2.x there is an enhancement to improve IME experience in autocomplete. This has been implemented in #2823589: Improve IME handling on Autocomplete.
Basically, when a user starts to type a foreign language character by using English letter, the autocomplete will not trigger a search event until the foreign language character is typed completely.
This is a nice feature to have, however it causes an issue in the Chrome browser on Android phone. In my case, I observed issues on both Samsung mobile and tablet. On those devices, even I try to type English instead of another foreign language character, the search event is not triggered until a full English word is typed and a space key is pressed. After troubleshooting, it turns out that word suggestion is provided on those devices, and when I start to type an English word, it also triggers 'compositionstart' and 'compositionend' events.
== Update ==
I have tested on
- two Adroid versions including 6.01 and 7.1
- two mobile brands
- two browsers including Chrome and Adroid default browser
Proposed resolution
I am not sure if that is really a Drupal bug. But it would be nice to have an option to turn this on or off per site.
The current solution is to cancel two event listeners in the custom JavaScript file in module or theme level.
Remaining tasks
Start to discuss
Comment | File | Size | Author |
---|---|---|---|
#23 | 2928820-nr-bot.txt | 179 bytes | needs-review-queue-bot |
#17 | 2928820-IME-enhancement-stops-autocomplete-16.patch | 2.44 KB | Nigel Cunningham |
#15 | 2928820-15.patch | 1.37 KB | KapilV |
#13 | autocomplete.patch | 2.47 KB | Nigel Cunningham |
Comments
Comment #2
mgiffordThat sounds really annoying.
Is it possible that this is an Android Chrome bug? Does it work in other browsers on in Android?
I don't think that turning off the autocomplete has been discussed before (that I can remember). Interesting idea.
Comment #3
eric.chenchao CreditAttribution: eric.chenchao commentedComment #4
eric.chenchao CreditAttribution: eric.chenchao commentedComment #5
eric.chenchao CreditAttribution: eric.chenchao commentedHi @mgifford, yes it happens to the Android default browser.
Comment #6
mgiffordBut not in Opera or FF? Can you search to see if there is a known problem in Adobe's Chrome implementation? If so it should probably be fixed there.
Comment #13
Nigel CunninghamWe've come across this issue and are using the patch I'm attaching. It is prepared against 8.9.14 but should work with other versions.
I'm not using the IME entry so would appreciate someone who knows what they're doing there trying the patch and seeing if it works ok for them.
Comment #14
Nigel CunninghamComment #15
KapilV CreditAttribution: KapilV as a volunteer and at Innoraft for Drupal Care, Drupal Association commentedComment #17
Nigel CunninghamThanks for your update @KapilV but we should update the es6 version too (https://www.drupal.org/node/2815083). Attaching that.
Comment #18
longwaveIs this a duplicate of #2909128: Autocomplete intermittent on Chrome Android?
Comment #19
Nigel CunninghamI don't think so - we're seeing it with English language use and - if I recall correctly; I'll seek to retest tomorrow - on non-Android.
I certainly do agree that it looks similar though, so perhaps the underlying cause is the same.
Comment #23
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #24
mgiffordTagging for https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose