-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with input Japanese characters when rapidly typing #62
Comments
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
P.S. |
There's an issue on this repo or on |
Maybe this one? I haven't read all of this discussion but I confirmed |
This is the issue - it's on the old evancz/elm-html repo |
Tracking in https://github.com/elm-lang/virtual-dom/issues/107. Thank you for the report! |
This issue is very hard to explain, but it's actually happening.
(For Japanese, this issue is about "高速にタイプすると途中で変換できなくなる件".)
Japanese people type Japanese characters through converting alphabets like this. When I want to input
こんにちは
, I typekonnichiha
. Also, during typing, browser shows the text (こんにちは
) with underline. This underline indicates "This text is not yet determined, you can also choose alternative plans to describekonnichiha
". All ofこんにちは
,今日は
andコンニチハ
can be converted fromkonnichiha
. So we choose one of them before finishing typing. To summarize, this "undetermined state" is important.Now, the problem is, when "value" attribute of input element is set by program, this "undetermined state" suddenly disappears. Basically, this does not happen because the value in Elm is always equal to the value of input element. But when I type rapidly, it behaves unexpectedly.
Type slowly
Type rapidly
The last two needless changes cause disappearance of "undetermined state". I confirmed this happens only when this line is evaluated. I think this is common issue in Chinese too.
If you can type this kind of language, I also created an example at jsFiddle, which is not Elm but able to see the behavior.
Thanks.
OS: Windows 7
Browser: Chrome 51
Elm: 0.17.0
elm-lang/core: 4.0.3
elm-lang/html: 1.1.0
The text was updated successfully, but these errors were encountered: