Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tlačítko ->addRemoveOnClick(); nefunguje bez vyplněného callbacku #15

Open
ghost opened this issue Aug 7, 2013 · 0 comments
Open
Labels

Comments

@ghost
Copy link

ghost commented Aug 7, 2013

Nette\InvalidArgumentException
Given component 1 is not children of items. // Číslo se mění podle komponenty

Tento problém se dá obejít pomocí:

->addRemoveOnClick(function($replicator, $container) {
    $this->presenter->redirect('this');
});

Nebylo by možné toto řešit už na straně Replikátoru? Ten callback() je totiž v tomto stavu zbytečný, ale bohužel bez něj to nejde.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants