diff --git a/src/Container.php b/src/Container.php index bf5f190..7c27703 100644 --- a/src/Container.php +++ b/src/Container.php @@ -487,6 +487,7 @@ public static function register(string $methodName = 'addDynamic') }); SubmitButton::extensionMethod('addCreateOnClick', function (SubmitButton $_this, bool $allowEmpty = false, $callback = null, array $snippets = []) { + $_this->setValidationScope(false); $_this->onClick[] = function (SubmitButton $button) use ($allowEmpty, $callback, $snippets) { /** @var Container $replicator */ $replicator = $button->lookup(__NAMESPACE__ . '\Container');