fix(core): edit tag should not jump to its detail (#8070)

fix AF-1324
This commit is contained in:
pengx17
2024-09-05 02:46:07 +00:00
parent 1cac2f6ccd
commit b680c1839b

View File

@@ -492,7 +492,13 @@ export const TagOperationCell = ({
<IconButton
tooltip={t['Rename']()}
tooltipOptions={tooltipSideTop}
onClick={() => setOpen(true)}
onClick={useCallback(
(e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault();
setOpen(true);
},
[setOpen]
)}
>
<EditIcon />
</IconButton>