teslamotors / informed

A lightweight framework and utility for building powerful forms in React applications
https://teslamotors.github.io/informed
MIT License
956 stars 174 forks source link

getApi #377

Closed wahlstedt closed 2 years ago

wahlstedt commented 2 years ago

The getApi form prop also seems to have disappeared? Nothing mentioned about it in the changelog. I used it to set some form input fields when the form is submitted or when certain keys are pressed during input. The currently listed methods to get access to the api doesn't seem to work from outside the form.

joepuzzo commented 2 years ago

Use formApiRef now . Same thing

wahlstedt commented 2 years ago

Thanks, that worked. Could be useful to add to the migration guide for v4.

joepuzzo commented 2 years ago

There is its in the changelog:) i may be missing some things but its there! Go give it a read

wahlstedt commented 2 years ago

I did a search of the entire repo for getApi and only got one mention of it (from the June 12, 2018 update). 🤔

joepuzzo commented 2 years ago

Yup then i forgot to add that to migration. My bad. I will add

wahlstedt commented 2 years ago

No worries, we figured it out pretty quickly. :)

While you're at it, can you add info about the Text input ( #376)? That's another thing that tripped me up while migrating.

joepuzzo commented 2 years ago

Sure will do!