fix normal select behavior when isMultiple is false
This commit is contained in:
parent
f5f57de46d
commit
d9636c4fb7
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ export default function Select({
|
||||||
if (!isMultiple) {
|
if (!isMultiple) {
|
||||||
const value = target.value !== '' ? target.value : null;
|
const value = target.value !== '' ? target.value : null;
|
||||||
onChange(value);
|
onChange(value);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const values = [];
|
const values = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue