Skip to content

Conversation

jessarcher
Copy link
Member

@jessarcher jessarcher commented Mar 8, 2023

This PR removes the local handleOnChange functions and calls Inertia's setData method directly instead.

This usage matches the Inertia documentation at https://inertiajs.com/forms#form-helper.

It also matches the new TypeScript version at #267, which also removed this function to avoid an extra type definition.

I've also fixed the default value of the remember prop.

@jessarcher jessarcher changed the title [1.x] Simplify React form handler [1.x] React - Simplify Form Handler Mar 8, 2023
@taylorotwell taylorotwell merged commit 8911fcb into 1.x Mar 8, 2023
@taylorotwell taylorotwell deleted the simplify-react-inertia-forms branch March 8, 2023 15:09
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

Successfully merging this pull request may close these issues.

2 participants