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

fix clearing password fields on React auth forms #395

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

daleweaver777
Copy link
Contributor

The auth forms are using a useEffect cleanup method to clear the password fields when validation fails and the user is redirect back to the form. However, this doesn't work because the React component is never unmounted. We should be using the Inertia form helper's onFinish hook to clear the fields after a post. This matches the Vue auth forms.

@daleweaver777 daleweaver777 changed the title fix clearing password fields on auth forms fix clearing password fields on React auth forms Jul 12, 2024
@taylorotwell taylorotwell merged commit 1446994 into laravel:2.x Jul 17, 2024
16 checks passed
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