8000 [2.7][Form] label_attr in choice_attr for choice field when expanded · Issue #14404 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[2.7][Form] label_attr in choice_attr for choice field when expanded #14404
Closed
@HeahDude

Description

@HeahDude

Since 03efce1 we can add attributes to options with 'choice_attr' and that's a really cool stuff among the bunch of features. Thanks for the job !

But when choice list is expanded it could be useful to pass attributes to option's label.

This throws an exception in twig rendering as html options attributes should not be arrays and they shouldn't except with this particular case of label_attr in choice_attr.

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

      0