Skip to content

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

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions