fix: prevent URL change on clicking unconfigured association field (#4919)

This commit is contained in:
Zeke Zhang 2024-07-25 10:50:22 +08:00 committed by GitHub
parent 09e3cb4996
commit ac3d6d91b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,10 +98,15 @@ const ButtonLinkList: FC<ButtonListProps> = (props) => {
if (designable) {
insertViewer(schema.Viewer);
}
openPopup({
recordData: record,
parentRecordData: recordData,
});
// fix https://nocobase.height.app/T-4794/description
if (fieldSchema.properties) {
openPopup({
recordData: record,
parentRecordData: recordData,
});
}
ellipsisWithTooltipRef?.current?.setPopoverVisible(false);
}}
>