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

Input field reset when trying to update the value from another input field #670

Open
sushantc10 opened this issue Jan 9, 2024 · 1 comment

Comments

@sushantc10
Copy link

We have a form with multiple react input fields, on selection of the input field we show a edit form where user can modify the value. once input is received the value on the main form is immediately updated

The issue happens in two cases

  1. when an input is provided with initial country set as canada ,country changes to us the the first character which was entered is not shows

  2. when trying to update the country the using the country value , the whole value is reset
    For eg: main form country was set as usa, then from the edit form when input was provided as 226 which is the area code for canada ,the country changes to canada but the input field becomes empty

Object before update:

['{"dialCode":"+1","type":"Mobile","value":null,"countryCode":"us"}']
Object after update:

['{"dialCode":"+1","type":"Mobile","value":"+1 (226)","countryCode":"ca"}']

Please provide a fix this issue at the earliest

@theoduong
Copy link

I also have the same issue!

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

2 participants