Skip to content

[Dropdown] Selecting Value in Original <select> should adjust Rendered Dropdown #2626

Closed
@quentinlampin

Description

I've encountered multiple bugs when using semantic UI's dropdown to prettify a select multiple bound to an angular controller.

Issues arise

  • when the controller updates the selection, e.g. when clearing the model once the form is submitted. In that case, selection labels are not cleared, the UI does not reflect the model state.
  • when dropdown('clear') is used, causing angular to raise an error (probably trying to access the length of the selection array which has been wiped by dropdown('clear')).

The following plunker shows the encountered issues:
http://plnkr.co/edit/r93SZXKQ8w5pAzlD1TlK?p=preview

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions