Unform: Input not update value when changed

Created on 18 Nov 2019  路  3Comments  路  Source: unform/unform

When I click on an input and make a change, the value is fixed to the 'value' attribute.

To Reproduce

https://prnt.sc/pycd6x

https://prnt.sc/pycdcl

Environment:

  • OS: Windows 10
  • Browser Chrome Vers茫o 78.0.3904.97 (Vers茫o oficial) 64 bits)
covered in 2.0 bug

Most helpful comment

We'll be covering this in Unform 2.0 tagged by branch 2.0. In the next release you'll have a method called setData and setFieldValue to set manually a value to any field inside the form.

We'll probably have Unform 2.0 in a couple weeks.

All 3 comments

Happening with me too. The values of component update as the input value but the screen is not rendered with the new value.

We'll be covering this in Unform 2.0 tagged by branch 2.0. In the next release you'll have a method called setData and setFieldValue to set manually a value to any field inside the form.

We'll probably have Unform 2.0 in a couple weeks.

Unform released 2.0 馃帀

Now you can set an input value manually using the new form reference API.

Check this out: https://unform.dev/guides/get-set-field-value

Was this page helpful?
0 / 5 - 0 ratings