fix(core): disable page header title from dragging when editing (#9258)

fix AF-2014
This commit is contained in:
pengx17
2024-12-23 13:27:00 +00:00
parent 989e318c57
commit 74a168222c

View File

@@ -189,6 +189,13 @@ export function DetailPageHeader(
id: page.id,
},
},
canDrag: args => {
// hack for preventing drag when editing the page title
const editingElement =
args.element.contains(document.activeElement) &&
document.activeElement?.tagName === 'INPUT';
return !editingElement;
},
onDragStart: () => {
track.$.header.$.dragStart();
},