From ec2a34db6e7263ac0fd174324108eb3c68f180ea Mon Sep 17 00:00:00 2001 From: Manuel Mtz-Almeida Date: Fri, 28 Apr 2017 20:47:27 +0200 Subject: [PATCH] fix(select): incorrect assert condition --- src/components/select/select.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/select/select.ts b/src/components/select/select.ts index da5047193d..61eb75f439 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -226,7 +226,7 @@ export class Select extends BaseInput 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; }