Action Modal closes itself when receiving Validation Errors via setErrorBag
What I am trying to do:
Have my action modal with a form not close when validation errors are thrown.
What I did:
My issue/the error:
The issue is that the modal closes. I can see that the browser receives an "close-modal" when I click submit in the modal. Thus the user can't see the errors.
2 Replies
I suspect it's the mapped keys because it's a view modal
I do have the same issue with a table in a modal, will try to resfult
Ah, it closes because the exception is caught, if it's not caught it stays open. However it still doesn't show the errors under the respective fields 😦
You are right. It doesn't show the errors because the wire keys are very different to what's used in the validator: