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
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

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>