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

  1. added 4 commits that reference this issue on Apr 6, 2024
    1cb13f0
    4c05a6a
    0c58435
    1aba9da
  2. added 2 commits that reference this issue on Apr 19, 2024
    970ddc8
    3a4f401
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