Project

General

Profile

Actions

Refactor #29131

open

Upgrade Formik to v2.x

Added by Jeremy Lenz about 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Formik (the React form library) has released a new major version (currently at 2.1.4) which allows use of React Hooks. We should upgrade our ForemanForm component to take advantage of this.

The TextField component inside ForemanForm uses a "render" prop in the Formik <Field> component, which is now deprecated and was causing me some issues similar to [this](https://stackoverflow.com/questions/47012169/a-component-is-changing-an-uncontrolled-input-of-type-text-to-be-controlled-erro).

Since <ForemanForm> is centralized in a single place, it should be relatively straightforward to do the upgrade.

See https://jaredpalmer.com/formik/docs/migrating-v2

Actions #1

Updated by Jeremy Lenz about 4 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF