stopped resize selected from text highlighting
This commit is contained in:
parent
5229aff9ab
commit
6a1c61606c
1 changed files with 6 additions and 7 deletions
|
|
@ -474,6 +474,10 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
})
|
||||
|
||||
return (
|
||||
<TableContainer className={classes.tableContainer} component={Paper}>
|
||||
<Table>
|
||||
|
|
@ -528,12 +532,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
columns.map((column, index) => {
|
||||
if (filterList.includes(column.title) || column.hidden) return null
|
||||
return (
|
||||
<TableCell
|
||||
key={"header-cell-"+index}
|
||||
// style={{ border: "1px solid red" }}
|
||||
// onClick={() => !column.disableSort && columnClick(column)}
|
||||
// sx={{ cursor: column.disableSort ? "default" : "pointer" }}
|
||||
>
|
||||
<TableCell key={"header-cell-"+index} width={rowWidths[index] ? rowWidths[index] : undefined}>
|
||||
<Grid2 container spacing={1} justifyContent={"space-between"}>
|
||||
<Grid2
|
||||
alignItems="center"
|
||||
|
|
@ -545,7 +544,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
</Grid2>
|
||||
{index < columns.length-1 &&
|
||||
<Grid2
|
||||
sx={{ cursor: "col-resize" }}
|
||||
sx={{ cursor: "col-resize", userSelect: "none" }}
|
||||
onMouseDown={event => resizeClick(event, index)}
|
||||
>
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue