fix(core): doc info event tracking issues (#8868)

fix AF-1769
This commit is contained in:
pengx17
2024-11-20 01:15:51 +00:00
parent 401106203c
commit 3f5dadb4f5
10 changed files with 51 additions and 43 deletions

View File

@@ -72,6 +72,15 @@ export const InfoTable = ({
});
}, []);
const onPropertyChange = useCallback(
(property: DocCustomPropertyInfo, _value: unknown) => {
track.$.docInfoPanel.property.editProperty({
type: property.type,
});
},
[]
);
return (
<>
{backlinks && backlinks.length > 0 ? (
@@ -122,6 +131,7 @@ export const InfoTable = ({
key={property.id}
propertyInfo={property}
defaultOpenEditMenu={newPropertyId === property.id}
onChange={value => onPropertyChange(property, value)}
/>
))}
<Menu