Skip to content

Placeholder width cutting off text when Select2 is initialized inside a hidden element #291

@yeago

Description

@yeago

We're having to patch select2 like so to get our placeholder text to appear properly.

  • ln 345: width: auto !important;

This happens when the new width option is either not provided or is set to 'element'. The placeholder gets an inline css width set, which mysteriously goes away and never comes back when the input is interacted with.

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