mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:38:51 +00:00
fix: unable to clear china region field (#4991)
This commit is contained in:
parent
b13f40c455
commit
ecdacf5e20
@ -123,9 +123,9 @@ export const Cascader = withDynamicSchemaProps(
|
||||
onDropdownVisibleChange={handelDropDownVisible}
|
||||
onChange={(value, selectedOptions: any) => {
|
||||
if (value && labelInValue) {
|
||||
onChange(selectedOptions.map((option) => omit(option, [fieldNames.children])));
|
||||
onChange(selectedOptions.map((option) => omit(option, [fieldNames.children])) || null);
|
||||
} else {
|
||||
onChange(value);
|
||||
onChange(value || null);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user