Skip to content
Snippets Groups Projects
Commit aeaf6f8d authored by Justin Toupin's avatar Justin Toupin
Browse files

Issue #3313147 by justin2pin, John Pitcairn, DeepaliJ, joachim: Cancel button...

Issue #3313147 by justin2pin, John Pitcairn, DeepaliJ, joachim: Cancel button should not validate the form, errors appear on next modal opened
parent f11744f3
No related branches found
No related tags found
1 merge request!147Prevent validation errors when pressing cancel
...@@ -195,6 +195,7 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf ...@@ -195,6 +195,7 @@ abstract class ComponentFormBase extends FormBase implements ComponentFormInterf
'#type' => 'button', '#type' => 'button',
'#weight' => 200, '#weight' => 200,
'#value' => $this->t('Cancel'), '#value' => $this->t('Cancel'),
'#limit_validation_errors' => [],
'#ajax' => [ '#ajax' => [
'callback' => '::cancel', 'callback' => '::cancel',
'progress' => 'none', 'progress' => 'none',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment