Skip to content

Method setRequired doesn't work on AutocompleteControl #2

@EdaCZ

Description

@EdaCZ

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

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