diff --git a/packages/editor/src/services/editor.ts b/packages/editor/src/services/editor.ts index 4a061f6c..260be3a8 100644 --- a/packages/editor/src/services/editor.ts +++ b/packages/editor/src/services/editor.ts @@ -527,8 +527,8 @@ class Editor extends BaseService { let newConfig = await this.toggleFixedPosition(toRaw(config), node, root); - newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue, key) => { - if (typeof srcValue === 'undefined' && Object.hasOwn(newConfig, key)) { + newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue, key, object: any, source: any) => { + if (typeof srcValue === 'undefined' && Object.hasOwn(source, key)) { return ''; }