Skip to content

How to remove without the cursor jumping to the end? #89

@levipadre

Description

@levipadre

Hi, thank you for the great plugin!

I'm trying the following:

<Form.Control
    id='sortCode'
    type='text'
    {...registerWithMask('sortCode', ['99-99-99'], {
        required: true,
        jitMasking: true,
        autoUnmask: true,
    })}
    isInvalid={!!errors.sortCode}
    isValid={touchedFields.sortCode && !errors.sortCode}
    required
    onInput={() => trigger('sortCode')}
/>

After I have all the numbers in place and try to remove the first number, for example, it jumps to the end.
Can I avoid that somehow?

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