Skip to content

The caret is reset when validation occursΒ #443

@Geparder

Description

@Geparder

If there are errors on the form and you enter a phone number, then after each entry the cursor disappears from the phone number entry field

import PhoneInput from 'react-phone-number-input/react-hook-form-input';

<PhoneInput name="phone" inputComponent={InputRef} control={control} rules={{ required: "error", }} />

If you remove the validation rules, then everything works fine

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