fix: click on selected row should do nothing

This commit is contained in:
2025-09-17 23:21:33 +00:00
parent 341fb9661b
commit 2f181cef45

View File

@@ -216,8 +216,11 @@ export function FileTableContent({ path }: { path: string }) {
})
const selectRow = (row: Row<DirectoryItem>) => {
table.toggleAllPageRowsSelected(false)
row.toggleSelected(true)
console.log("row.getIsSelected()", row.getIsSelected())
if (!row.getIsSelected()) {
table.toggleAllPageRowsSelected(false)
row.toggleSelected(true)
}
}
if (!directory) {