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

Commit 96d69d7

Browse files
committed
All these combitions will now work:
<ui-select multiple> <ui-select multiple="true"> <ui-select multiple="false"> This will solve: #217 Is there any way to change multiple selection mode at the run time
1 parent 676aa6a commit 96d69d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@
581581

582582
var searchInput = element.querySelectorAll('input.ui-select-search');
583583

584-
$select.multiple = angular.isDefined(attrs.multiple);
584+
$select.multiple = (angular.isDefined(attrs.multiple)) ? (attrs.multiple === '') ? true : (attrs.multiple.toLowerCase() === 'true') : false;
585585

586586
$select.onSelectCallback = $parse(attrs.onSelect);
587587
$select.onRemoveCallback = $parse(attrs.onRemove);

0 commit comments

Comments
 (0)