Skip to content

Cannot type Chinese in <input /> under controlled mode + ReactDom 16.8.2 #14861

Closed
@youluna

Description

@youluna

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Cannot type Chinese in <input /> under controlled mode when using react-dom 16.8.2 via CND

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

https://jsfiddle.net/youluna/egz9Lvrp/36/

  1. Switch IME(input method editor) into Chinese
  2. try type any letters, you can only get English letters but not Chinese characters
    image

What is the expected behavior?
Can type Chinese characters
image

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Not worked in react-dom 16.8.2
But worked well in react-dom 16.8.1

related alibaba-fusion/next#324

update:
It's wired that use React as a <script> tag from a CDN doesn't work, but as a react package on npm worked well. Both are version 16.8.2

  1. CDN: https://jsfiddle.net/youluna/6o3rhg7u/1/
  2. npm: https://codesandbox.io/s/xp15m8woww

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions