angular-2-dropdown-multiselect
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "angular-2-dropdown-multiselect", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Customizable dropdown multiselect in Angular 2 with bootstrap css.", | ||
@@ -5,0 +5,0 @@ "main": "src/multiselect-dropdown.ts", |
@@ -32,2 +32,3 @@ /* | ||
closeOnSelect?: boolean; | ||
autoUnselect?: boolean; | ||
showCheckAll?: boolean; | ||
@@ -110,3 +111,3 @@ showUncheckAll?: boolean; | ||
let parentFound = false; | ||
while (target !== null && !parentFound) { | ||
while (target != null && !parentFound) { | ||
if (target === this.element.nativeElement) { | ||
@@ -137,2 +138,3 @@ parentFound = true; | ||
closeOnSelect: false, | ||
autoUnselect: false, | ||
showCheckAll: false, | ||
@@ -208,4 +210,9 @@ showUncheckAll: false, | ||
} else { | ||
this.selectionLimitReached.emit(this.model.length); | ||
return; | ||
if (this.settings.autoUnselect) { | ||
this.model.push(option.id) | ||
this.model.shift(); | ||
} else { | ||
this.selectionLimitReached.emit(this.model.length); | ||
return; | ||
} | ||
} | ||
@@ -212,0 +219,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13957
246