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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eric.chenchao created an issue. See original summary.

mgifford’s picture

That 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.

eric.chenchao’s picture

Title: IME enhancement caused » IME enhancement stops autocomplete search event in Android when typing an English word
eric.chenchao’s picture

Issue summary: View changes
eric.chenchao’s picture

Hi @mgifford, yes it happens to the Android default browser.

mgifford’s picture

Category: Bug report » Feature request

But 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.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Nigel Cunningham’s picture

We'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.

Nigel Cunningham’s picture

Status: Active » Needs review
KapilV’s picture

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Nigel Cunningham’s picture

Thanks for your update @KapilV but we should update the es6 version too (https://www.drupal.org/node/2815083). Attaching that.

longwave’s picture

Nigel Cunningham’s picture

I 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.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
179 bytes

The 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.

mgifford’s picture

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.