Skip to content

Cursor jumps after decimal separator if thousand separator should disappear #695

@rene-stesl

Description

@rene-stesl

Describe the issue and the actual behavior

Starting point is a NumericFormat which has multiple thousandSeparators and a decimalSeparator.
If the cursor is placed right in front of the decimal separator and backspace is pressed, the cursor jumps after the decimal separator if a thousand separator should disappear.

Describe the expected behavior

Cursor shouldn't jump after the comma separator.

Provide a CodeSandbox link illustrating the issue

https://codesandbox.io/s/thousandsgroupstyle-demo-forked-wir1uo?file=/src/App.js

Provide steps to reproduce this issue

  1. Open CodeSandbox
  2. Place cursor behind the 6 but before the comma separator ","
  3. Press Backspace
  4. Cursor now is after the comma separator instead of in front

Please check the browsers where the issue is seen

  • [ x] Chrome
  • Chrome (Android)
  • Safari (OSX)
  • Safari (iOS)
  • [ x] Firefox
  • Firefox (Android)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions