8000 Symfony 2.8.11 - Form `choice`'s options are inheriting id and name of parent select · Issue #19898 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Symfony 2.8.11 - Form choice's options are inheriting id and name of parent select #19898
Closed
@alanhartless

Description

@alanhartless

I had an override for choice_widget_options.html.php as a work around for #19016. I noticed that has since been fixed so wanted to give it a try. When I removed the override to use stock, I noticed that each option of the select inherited it's id and name attributes as well. This caused issues for me with JS getElementById(). Should a check be in place to not set the parent's id and name?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0