Skip to content

Copy and paste broken when caret in middle of value #79

@ryanggrey

Description

@ryanggrey

To reproduce issue:

  • Follow Developing section in readme and load localhost:3000 in browser
  • Type 12 in default finput field
  • Select all and copy
  • Position caret between 1 and 2
  • Paste

Observed (broken) behaviour:
12 is completely replaced with 12 making it look like no paste has happened.

Expected:
Value should now be 1,212

The fix needs to be tested on both mac & windows. We should probably test edge cases such as positioning the caret before and after thousands/decimal delimiters before pasting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions