pull/1806/head v1.0.4-beta.28
LASER-Yi 3 years ago
parent 9e2b2d8b00
commit 5f29baca34
No known key found for this signature in database
GPG Key ID: BB28903D50A1D408

@ -128,8 +128,9 @@ export function Selector<T = string, M extends boolean = false>(
onChange(values as SelectorValueType<T, M>);
} else {
const value = (newValue as OnChangeValue<SelectorOption<T>, false>)
?.value;
const value =
(newValue as OnChangeValue<SelectorOption<T>, false>)?.value ??
null;
onChange(value as SelectorValueType<T, M>);
}

Loading…
Cancel
Save