Characters duplicated when entering numbers using any Japanese Keyboard
See original GitHub issueWhen entering into <NumberFormat />
using any Japanese Keyboard, characters are duplicated as a user types and deletes.
Found when using iOS environment.
Below is an example using the ‘Live Demo’ with the Japanese Kana Keyboard.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
List item is duplicated unexpectedly when typing Japanese ...
When typing Japanese characters using the IME (i.e. input method editor), a list item is duplicated unexpectedly after Enter key was pressed ...
Read more >Troubleshoot Japanese on Mac when characters repeat
If you have another keyboard, try using it. If characters are not repeating with the second keyboard, the original keyboard may not be...
Read more >Duplicated number automatically input into Currency or ...
Change the keyboard mode to "Japanese - Kana" and Number("☆123" key) -6. Input "1", "2" and "3", and tap on any other field...
Read more >Duplicate Input - Web Bugs - Memrise Community
For some reason my japanese answers get duplicated once I hit enter, this only happens when the answer is correct. Thanks for any...
Read more >Duplicate characters are inserted when user click outside edit ...
(1) focus in any editable field ; (2) switch input method to Japanese IME hiragana mode ; (3) type 'aka'
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@donovantc sorry, I no longer have access to this code. However, the solution didn’t use a library (although this library might benefit from the added feature, I’ll have a think about adding something in).
Basically the solution was to attach an onFocus/onBlur listener to the field, when the cursor focused on the field the component would set a state value
true
orfalse
. This value would switch whether the component visible was the react-number-format component, or a plain input field.I’m sure this library could have an additional prop named something like ‘formatOnBlur’ or something more intuitive with this functionality set internally.
Hope that helps you with your issue.
@donovantc haha won’t hold you to it then