Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The caret is reset when validation occurs #443

Open
Geparder opened this issue May 22, 2024 · 4 comments
Open

The caret is reset when validation occurs #443

Geparder opened this issue May 22, 2024 · 4 comments

Comments

@Geparder
Copy link

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

@hunxjunedo
Copy link

kindly assign this issue to me.

@adomasa
Copy link

adomasa commented Jun 7, 2024

Any news on this?

@Geparder
Copy link
Author

Geparder commented Jul 3, 2024

kindly assign this issue to me.

do you have any results?

@hunxjunedo
Copy link

@Geparder just read your comment, coming back with a result tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants