diff --git a/modules/ui_patterns_views/src/Plugin/views/row/ComponentRow.php b/modules/ui_patterns_views/src/Plugin/views/row/ComponentRow.php index c1f935e53c67cb83ae1e4aa1d3858a9ea4481c26..339de2494d7d165bde6b9ae217c5e6e77ba93ed5 100644 --- a/modules/ui_patterns_views/src/Plugin/views/row/ComponentRow.php +++ b/modules/ui_patterns_views/src/Plugin/views/row/ComponentRow.php @@ -84,6 +84,7 @@ class ComponentRow extends Fields { } // Build ui patterns component form. $form['ui_patterns'] = $this->componentSettingsForm($form, $form_state, $this->getComponentSourceContexts()); + $form['ui_patterns']["#component_validation"] = FALSE; } /** diff --git a/src/Element/ComponentForm.php b/src/Element/ComponentForm.php index 9db7bc23b2ff666dbd11e0ead371f1bda8fa5f93..639997d7b5f927822ed4adf2b9462db86f4bddd1 100644 --- a/src/Element/ComponentForm.php +++ b/src/Element/ComponentForm.php @@ -308,6 +308,10 @@ class ComponentForm extends ComponentFormBase { if (static::openWrappedElementsWithErrors($element, $form_state)) { return; } + if (isset($element["#component_validation"]) && !$element["#component_validation"]) { + $form_state->setValueForElement($element, $element['#value']); + return; + } try { $trigger_element = $form_state->getTriggeringElement(); if (isset($trigger_element['#ui_patterns']) === FALSE) {