Closed (fixed)
Project:
Layout Paragraphs
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2022 at 23:05 UTC
Updated:
24 Dec 2023 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnpitcairn commentedPatch unsets any form errors then returns early before behavior/paragraph validation if the triggering element was "cancel".
Comment #3
deepalij commentedComment #4
johnpitcairn commented@DeepaliJ: why is this assigned to you? It just needs review, right? Or are you doing more work on the patch?
Comment #5
johnpitcairn commentedComment #6
johnpitcairn commentedHmm, why does the cancel button need to perform a full ajax submit anyway? It could just close the modal, if we attach suitable js. But that could be a followup.
Comment #7
joachim commentedPatch works for me.
> Hmm, why does the cancel button need to perform a full ajax submit anyway
I don't know if the forms with without JS but there should be provision for that, so we need to handle it in the backend anyway.
Comment #10
justin2pin commentedSimplified to use the
#limit_validation_errorsoption on the Cancel button.Comment #12
justin2pin commented