Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Method setRequired doesn't work on AutocompleteControl #2

Open
EdaCZ opened this issue Oct 23, 2020 · 1 comment
Open

Method setRequired doesn't work on AutocompleteControl #2

EdaCZ opened this issue Oct 23, 2020 · 1 comment

Comments

@EdaCZ
Copy link

EdaCZ commented Oct 23, 2020

If i use method ->setRequired(true) on AutocompleteControl it crashes after form sending, because standard validator has incompatible typehint in parameter.

Argument 1 passed to Nette\Forms\Validator::validateFilled() must be an instance of Nette\Forms\Controls\BaseControl, instance of Nextras\FormComponents\Controls\AutocompleteControl given, called in /.../vendor/nette/forms/src/Forms/Rules.php on line 283
@KacerCZ
Copy link

KacerCZ commented Mar 20, 2024

Hi, today I encountered this bug.
It does not work because of this change in Nette forms: nette/forms#157

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

No branches or pull requests

2 participants