-
Notifications
You must be signed in to change notification settings - Fork 231
[TodoMVC Example] [enter] key event to determin transform of Japanese characters makes the item added to list #1338
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
Comments
Issue レポートありがとうございます ✨ 確認したところ、バージョン ただ、Vue.js 公式 example の TodoMVC、この仕様変更に対応していないのは、あまりよろしくないので、本家公式ドキュメントレポジトリ もしくは OSS なので PR 送って頂けると、コアチーム側としては大変助かります。 🙇 |
|
ありがとうございます! Pull Request するには、 vuejs/vue レポジトリを自分のアカウントにフォークし、そのレポジトリ上で編集する必要があります。 |
ありがとうございます。pull requestに加えました。 「Changing keyup to keypress to properly deal transform of Japanese chars」 #9172 |
マージされたのcloseします。 |
概要
日本語変換を確定する[enter]キーで項目が追加されてしまいます。
詳細
「TodoMVC の例」で日本語入力時、[enter]キーで変換候補を選ぶと、ユーザーはまだ入力中のつもりなのに、その項目がリストに追加されてしまいます。
参考資料など
「Vue.js: TodoMVCの例で日本語の項目が正しく入力できるようにする」
キーイベントを
keypress
に改め、[enter]キーであることを確かめて追加するようにすれば、変換確定で処理はされません。修正例「TodoMVC revised」
なお、v2.3.4では、
keydown
イベントは日本語変換を確定する[enter]キーは拾いませんでした。標準JavaScriptのkeydown
イベントも同じです。現在の動作は仕様変更でしょうか。The text was updated successfully, but these errors were encountered: