Skip to content

Custom form macros are overridden by default ones #320

@hrach

Description

@hrach

Version: 3.1.14

Bug Description

Adding an extension that defines Latte tags like input has no effect, as the default template factory re-registers the default form macros that override the custom ones.

if (class_exists(Nette\Bridges\FormsLatte\FormsExtension::class)) {
$latte->addExtension(new Nette\Bridges\FormsLatte\FormsExtension);
}

Expected Behavior

A custom-defined extension takes precedence.

Alternatively, couldn't be this configurable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions