question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Characters duplicated when entering numbers using any Japanese Keyboard

See original GitHub issue

When 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.

react-number-format-gif

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jackall3ncommented, Aug 14, 2019

@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 or false. 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.

0reactions
jackall3ncommented, Aug 14, 2019

@donovantc haha won’t hold you to it then

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found