Skip to content

Custom form macros are overridden by default ones #320

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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