mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-24 16:02:20 +08:00
fix: unable to clear china region field (#4991)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user