fix: remove dual-mode checkbox — clicks always toggle selection, no more popover on first click
This commit is contained in:
@@ -3107,13 +3107,6 @@ export default function VulnerabilityTriagePage({ filterDate, filterEXC }) {
|
||||
style={{ padding: '0.45rem 0.5rem', textAlign: 'center', width: '36px' }}
|
||||
onClick={(e) => {
|
||||
if (queued) return;
|
||||
// If nothing selected and not shift-click, open single-add popover
|
||||
if (selectedIds.size === 0 && !e.shiftKey) {
|
||||
const rect = e.currentTarget.getBoundingClientRect();
|
||||
setAddPopover({ finding, anchorRect: rect });
|
||||
setQueueForm({ vendor: '', workflowType: 'FP' });
|
||||
return;
|
||||
}
|
||||
// Shift-click range select
|
||||
if (e.shiftKey && lastClickedId) {
|
||||
const lastIdx = sorted.findIndex((f) => f.id === lastClickedId);
|
||||
@@ -3130,7 +3123,7 @@ export default function VulnerabilityTriagePage({ filterDate, filterEXC }) {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// Toggle selection
|
||||
// Regular click — toggle selection
|
||||
setSelectedIds((prev) => {
|
||||
const next = new Set(prev);
|
||||
if (next.has(finding.id)) next.delete(finding.id); else next.add(finding.id);
|
||||
|
||||
Reference in New Issue
Block a user