Skip to content

CurrencyInputFormatter - Incorrect cursor position when typing 0 with a leading symbol #134

@nizioleque

Description

@nizioleque

I am using the CurrencyInputFormatter with a leading symbol (let's say EUR).

When I enter a non-zero digit the cursor is positioned correctly next to the period (which is correct an expected behavior) - example: in an empty field I input 1. The result is EUR1|.00 where | is the cursor position.

But when I enter 0, the cursor is not positioned correctly - example: in an empty field I input 0. The result is E|UR0.00.

I would appreciate a fix for this issue :)

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