mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-06 21:40:23 +08:00
Merge pull request #680 from smartxworks/fix/select
fix(arco/Select): when defaultValue is empty, it is handled as undefined
This commit is contained in:
commit
e638b0de68
@ -74,7 +74,7 @@ export const Select = implementRuntimeComponent({
|
||||
customStyle,
|
||||
callbackMap,
|
||||
mergeState,
|
||||
defaultValue = '',
|
||||
defaultValue,
|
||||
subscribeMethods,
|
||||
} = props;
|
||||
const {
|
||||
@ -92,7 +92,7 @@ export const Select = implementRuntimeComponent({
|
||||
} = getComponentProps(props);
|
||||
|
||||
const [value, setValue] = useStateValue(
|
||||
defaultValue,
|
||||
defaultValue || undefined,
|
||||
mergeState,
|
||||
updateWhenDefaultValueChanges,
|
||||
undefined,
|
||||
|
Loading…
x
Reference in New Issue
Block a user