You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is applicable on Laravel 6, 7, 8 (older was not tested). Issue description:
When there exists form independent AJAX calls on page with form which should be validated, validation works only on first try. On next submit, error bag and old() is lost - no error messages or old values are shown. Below is example, how to test in on fresh laravel installation: web.php:
If you fill e.g. only one input, on first try it will mark second rightly as wrong (as expected) but on next tries, it doesn't mark anything as wrong an old values are lost.
If you just remove whole <script></script>, validation starts to work as expected on any tries submit is fired
This discussion was converted from issue #34443 on September 21, 2020 19:43.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This issue is applicable on Laravel 6, 7, 8 (older was not tested).
Issue description:
When there exists form independent AJAX calls on page with form which should be validated, validation works only on first try. On next submit, error bag and old() is lost - no error messages or old values are shown. Below is example, how to test in on fresh laravel installation:
web.php:
CheckValidatorWorkController.php
checkvalidator.blade.php
If you fill e.g. only one input, on first try it will mark second rightly as wrong (as expected) but on next tries, it doesn't mark anything as wrong an old values are lost.
If you just remove whole
<script></script>
, validation starts to work as expected on any tries submit is firedBeta Was this translation helpful? Give feedback.
All reactions