From 0efccd5cf551d6e7bf788a9024a3931f9120394e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20M=C3=A1tyus?= Date: Wed, 10 Mar 2021 03:10:46 +0100 Subject: [PATCH] Fix scope in new forms https://forum.nette.org/cs/32264-jednoduchy-setvalidationscope-false#p204765 --- docs/en/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/index.md b/docs/en/index.md index e6e479e..033ca15 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -142,12 +142,12 @@ protected function createComponentMyForm(): Form // ... $user->addSubmit('remove', 'Remove') - ->setValidationScope(false) # disables validation + ->setValidationScope([]) # disables validation ->onClick[] = [$this, 'myFormAddElementClicked']; }, 1); $users->addSubmit('add', 'Add next person') - ->setValidationScope(false) + ->setValidationScope([]) ->onClick[] = [$this, 'myFormAddElementClicked']; // ...