fix(select): incorrect assert condition

This commit is contained in:
Manuel Mtz-Almeida
2017-04-28 20:47:27 +02:00
parent ee3d943116
commit ec2a34db6e

View File

@ -226,7 +226,7 @@ export class Select extends BaseInput<any> implements OnDestroy {
*/
getValues(): any[] {
const values = Array.isArray(this._value) ? this._value : [this._value];
assert(!this._multi && values.length <= 1, 'single only can have one value');
assert(this._multi || values.length <= 1, 'single only can have one value');
return values;
}