Skip to content

ui dropdown does not allow to clear dropdown values #2565

Closed
@vishalrajole

Description

@vishalrajole

When "ui dropdown" class is active on select element, it does not allow to reset it. But when only single class (only ui or only dropdown) is applied it allow to reset value.

HTML Code:

 <select ng-options="option for option in brands" ng-model="mdl.brandValue" class="ui dropdown">
 <option value="">Brands</option>
 </select>
<div id="reset" class="ui fluid large button" ng-click="mdl.brandValue='0'">Clear Filters</div>

JS Code:

    $scope.brands = ["AT&T", "Apple", "HTC", "LG", "Motorola", "Samsung", "Sprint", "Verizon Wireless"];

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