Skip to content

removeComponent() and getControls() in group #155

@aleswita

Description

@aleswita
  • bug report? yes
  • feature request? no
  • version: 2.4.4

Description

I have no idea if is bug or intention. but if I remove component from form, component still exist in group controls.

Steps To Reproduce

protected function createComponentForm(): \Nette\Application\UI\Form {
	$form = new \Nette\Application\UI\Form;

	$form->addGroup("group1");

	$form->addText("input1");

	$form->addText("input2");

	$form->addSubmit("send1");

	$form->removeComponent($form["input1"]);

	bdump($form->getComponents());
	bdump($form->getCurrentGroup()->getControls());

	return $form;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions