We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee3d943 commit ec2a34dCopy full SHA for ec2a34d
src/components/select/select.ts
@@ -226,7 +226,7 @@ export class Select extends BaseInput<any> implements OnDestroy {
226
*/
227
getValues(): any[] {
228
const values = Array.isArray(this._value) ? this._value : [this._value];
229
- assert(!this._multi && values.length <= 1, 'single only can have one value');
+ assert(this._multi || values.length <= 1, 'single only can have one value');
230
return values;
231
}
232
0 commit comments