Skip to content

Commit ec2a34d

Browse files
committed
fix(select): incorrect assert condition
1 parent ee3d943 commit ec2a34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/select/select.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export class Select extends BaseInput<any> implements OnDestroy {
226226
*/
227227
getValues(): any[] {
228228
const values = Array.isArray(this._value) ? this._value : [this._value];
229-
assert(!this._multi && values.length <= 1, 'single only can have one value');
229+
assert(this._multi || values.length <= 1, 'single only can have one value');
230230
return values;
231231
}
232232

0 commit comments

Comments
 (0)