Skip to content

Commit

Permalink
fix(Selectize): hide input box when selected data is 0
Browse files Browse the repository at this point in the history
Previous check was only for a falsy value rather than null or undefined
causing input box not to be hidden even though an item had been selected.
(As that item's value evaluated to fals-y) 

Update check to ensure falsy-values actually register as being selected.

Closes angular-ui#1304
  • Loading branch information
Jefiozie authored and user378230 committed Jul 8, 2016
1 parent 43c1e4d commit e179dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize/select.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ng-click="$select.toggle($event)"
placeholder="{{$select.placeholder}}"
ng-model="$select.search"
ng-hide="!$select.searchEnabled || ($select.selected && !$select.open)"
ng-hide="!$select.searchEnabled || (!$select.isEmpty() && !$select.open)"
ng-disabled="$select.disabled"
aria-label="{{ $select.baseTitle }}">
</div>
Expand Down

0 comments on commit e179dc6

Please sign in to comment.