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

Custom form macros are overridden by default ones #320

Closed
hrach opened this issue Feb 5, 2024 · 0 comments
Closed

Custom form macros are overridden by default ones #320

hrach opened this issue Feb 5, 2024 · 0 comments

Comments

@hrach
Copy link
Contributor

hrach commented Feb 5, 2024

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?

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

1 participant