Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

ui-select multiple disabled state hides placeholder text incorrectly #1667

Closed
@longzheng

Description

@longzheng

Bug description:

When using ui-select in multiple mode, if ui-select is disabled, the ui-select-match placeholder text is incorrectly hidden using ng-hide

Multiple, placeholder text, ui-select enabled
image

Multiple, placeholder text, ui-select disabled
image

This behavior works correctly for non-multiple ui-selects
image

Link to minimally-working plunker that reproduces the issue:

http://angular-ui.github.io/ui-select/demo-tagging.html

  • Clear values from input
  • Click on "Disable ui-select"
  • Actual: placeholder text disappears
  • Expected: placeholder text remains

Version of Angular, UI-Select, and Bootstrap/Select2/Selectize CSS

Angular: 1.5.0

UI-Select: 0.18.0

Fix

Remove this ng-hide from the select-multiple template https://github.com/angular-ui/ui-select/blob/master/src/bootstrap/select-multiple.tpl.html#L12

There is no equivelant ng-hide for the non-multiple select template https://github.com/angular-ui/ui-select/blob/master/src/bootstrap/select.tpl.html

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