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
On submit, path-deps catches the patch to /endpoint and refreshes the related content. So a successful submission should use hx-swap="none". However, that prevents hx-target-error from making the error swap so the user can correct the validation mistake.
So I have to do manually hide the response like this or with templating:
I cannot find a way to only enable swap for hx-target-error. It would be helpful if there was a way to only enable swap for error responses - or something that achieves the same effect.
Thanks!
The text was updated successfully, but these errors were encountered:
I want a form like this:
On submit,
path-deps
catches the patch to/endpoint
and refreshes the related content. So a successful submission should usehx-swap="none"
. However, that preventshx-target-error
from making the error swap so the user can correct the validation mistake.So I have to do manually hide the response like this or with templating:
I cannot find a way to only enable swap for
hx-target-error
. It would be helpful if there was a way to only enable swap for error responses - or something that achieves the same effect.Thanks!
The text was updated successfully, but these errors were encountered: