Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Chinese IME composition deletes preceding text in code cells on Google Chrome #1684

Closed

Description

@twenjun879

Discription

I came across this problem when i am using a Chinese IME in https://codemirror.net/try/ in chrome.

When i try to type in chinese, the text/code immediately preceding the cursor gets deleted. The Chinese IME i am using is microsoft Chinese IME. The problem persists in a Chrome Incognito window, however it does not occur when i use microsoft edge.

I am using chrome 148.0.7730.2

Reproduce

  1. Open https://codemirror.net/try/ in chrome
  2. Use a Chinese IME (e.g.,microsoft chinese ime) and start to type in chinese right behind the English code
  3. The end of English code get deleted.
    ( and if you try to type chinese in the middle of a code cell, more content get deleted)

Context

Operating System and version: Windows 11
Browser and version: chrome 148.0.7730.2

Activity

  1. marijnh commented on Mar 24, 2026

    @marijnh
    Member

    In which editor (left or right) on that page are you typing when the problem occurs, and where in the document? Also what are you typing (keys pressed, in which order)? I tried to reproduce this on Chrome stable (146) but could not get anything odd to happen.

  2. twenjun879 commented on Mar 25, 2026

    @twenjun879
    Author

    In which editor (left or right) on that page are you typing when the problem occurs, and where in the document? Also what are you typing (keys pressed, in which order)? I tried to reproduce this on Chrome stable (146) but could not get anything odd to happen.

    i will show you a screen shot here
    https://www.awesomescreenshot.com/video/50790265?key=4080072bdf372e01b9752a054459865a

  3. twenjun879 commented on Mar 25, 2026

    @twenjun879
    Author

    In which editor (left or right) on that page are you typing when the problem occurs, and where in the document? Also what are you typing (keys pressed, in which order)? I tried to reproduce this on Chrome stable (146) but could not get anything odd to happen.

    i will show you a screen shot here https://www.awesomescreenshot.com/video/50790265?key=4080072bdf372e01b9752a054459865a

    i think this is a new problem
    i have been using jupyter notebook for a long time but this issue occured just recently

  4. marijnh commented on Mar 26, 2026

    @marijnh
    Member

    Okay, strange. I installed Chrome Canary (version 148), but I still cannot reproduce this. Are you seeing any errors in your JavaScript console when this occurs?

  5. twenjun879 commented on Mar 31, 2026

    @twenjun879
    Author

    Thanks for looking into this. I opened the F12 console, but no red error messages appear when the text gets deleted.

    However, the exact same text-deletion bug happens when I try to type Chinese directly into the F12 Console's own input line.

  6. sigsignv commented on Apr 1, 2026

    @sigsignv

    This issue also occurs when using a Japanese IME. I’ve attached a video.

    screenshot.mp4

    So far, I’ve only been able to reproduce it in Chrome on Windows.

    Reproduced on

    • Chrome Beta 147.0.7727.24 on Windows 11

    Not reproduced on

    • Chrome Beta 147.0.7727.24 on macOS
    • Firefox Beta 150.0b3 on Windows 11 / macOS
    • Safari 26.4 on macOS
  7. MattLance-2304 commented on Apr 7, 2026

    @MattLance-2304

    Hi, I'm having the same thing with RStudioServer pages in chrome, and the no trace mode didn't improve it, even typing in chrome's address bar (but the address bar problem disappeared after a computer reboot) however the Edge doesn't have it at all I'm guessing that maybe it's chrome! I'm guessing that maybe it's a chrome problem?

  8. marijnh commented on Apr 14, 2026

    @marijnh
    Member

    I tried to do precisely what sigsignv's screencast shows, in both Chrome 147 and 149 (go to https://codemirror.net/try, clear editor, type "turn on IME:" with an English keyboard, switch to Japanese, continue typing), but I'm not seeing the issue. My VM is running Windows 10 (I don't have a Windows 11 setup). Maybe that's the difference?

  9. sigsignv commented on Apr 14, 2026

    @sigsignv

    After updating to Chrome Beta 148.0.7778.5, I can no longer reproduce the issue.

    This appears to have been caused by a Chromium bug, and it has since been fixed. twenjun879 and I were both using affected versions of Chrome.

    Thanks for looking into this, marijnh.

  10. marijnh commented on Apr 14, 2026

    @marijnh
    Member

    Thanks for digging up the Chrome issue! I'm going to close this issue here, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions