fix: click on selected row should do nothing
This commit is contained in:
@@ -216,8 +216,11 @@ export function FileTableContent({ path }: { path: string }) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const selectRow = (row: Row<DirectoryItem>) => {
|
const selectRow = (row: Row<DirectoryItem>) => {
|
||||||
table.toggleAllPageRowsSelected(false)
|
console.log("row.getIsSelected()", row.getIsSelected())
|
||||||
row.toggleSelected(true)
|
if (!row.getIsSelected()) {
|
||||||
|
table.toggleAllPageRowsSelected(false)
|
||||||
|
row.toggleSelected(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!directory) {
|
if (!directory) {
|
||||||
|
Reference in New Issue
Block a user