You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the submit button ceases to exist before processing the form, Form::isSubmitted() will return TRUE, but docs say it can only return ISubmitterControl|false
Steps To Reproduce
protectedfunctioncreateComponentBlaForm()
{
$form = newNette\Application\UI\Form();
// easiest way to simulate disappearing buttonif (mt_rand(1, 2) === 1) {
$form->addSubmit('send');
} else {
\Tracy\Debugger::barDump('Sending button does not exist');
}
$form->onSuccess[] = function (Nette\Application\UI\Form$form) {
\Tracy\Debugger::barDump($form->isSubmitted());
};
return$form;
}