fix: «К отчётности» не переходил на свод — клик всплывал до onRow строки (H-1, #3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EAKRDNzXtRrwmWz9z6PZu3
This commit is contained in:
parent
11e78c67a8
commit
977a0efeaf
@ -122,7 +122,13 @@ export function ConsoleTableWidget() {
|
|||||||
width: 120,
|
width: 120,
|
||||||
render: (_: unknown, row: ConsRow) => (
|
render: (_: unknown, row: ConsRow) => (
|
||||||
<div style={{ display: 'flex' }}>
|
<div style={{ display: 'flex' }}>
|
||||||
<Button type='default' onClick={() => navigate(`/groups/${group_id}/versions/${row.id}/osv`)}>
|
<Button
|
||||||
|
type='default'
|
||||||
|
onClick={(e) => {
|
||||||
|
// иначе клик всплывает до onRow строки, и его setSearchParams(replace) отменяет переход
|
||||||
|
e.stopPropagation();
|
||||||
|
navigate(`/groups/${group_id}/versions/${row.id}/osv`);
|
||||||
|
}}>
|
||||||
К отчётности <ArrowRightOutlined />
|
К отчётности <ArrowRightOutlined />
|
||||||
</Button>
|
</Button>
|
||||||
<RowActions row={row} onAction={handleDropdownAction} />
|
<RowActions row={row} onAction={handleDropdownAction} />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user