diff --git a/src/Kdyby/Replicator/Container.php b/src/Kdyby/Replicator/Container.php index b8fe716..1e551c3 100644 --- a/src/Kdyby/Replicator/Container.php +++ b/src/Kdyby/Replicator/Container.php @@ -509,6 +509,9 @@ public static function register($methodName = 'addDynamic') if (is_callable($callback)) { callback($callback)->invoke($replicator, $button->parent); } + if ($form = $button->getForm(FALSE)) { + $form->onSuccess = array(); + } $replicator->remove($button->parent); }; return $_this;