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 (
|
return (
|
||||||
<TableContainer className={classes.tableContainer} component={Paper}>
|
<TableContainer className={classes.tableContainer} component={Paper}>
|
||||||
<Table>
|
<Table>
|
||||||
|
|
@ -528,12 +532,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
columns.map((column, index) => {
|
columns.map((column, index) => {
|
||||||
if (filterList.includes(column.title) || column.hidden) return null
|
if (filterList.includes(column.title) || column.hidden) return null
|
||||||
return (
|
return (
|
||||||
<TableCell
|
<TableCell key={"header-cell-"+index} width={rowWidths[index] ? rowWidths[index] : undefined}>
|
||||||
key={"header-cell-"+index}
|
|
||||||
// style={{ border: "1px solid red" }}
|
|
||||||
// onClick={() => !column.disableSort && columnClick(column)}
|
|
||||||
// sx={{ cursor: column.disableSort ? "default" : "pointer" }}
|
|
||||||
>
|
|
||||||
<Grid2 container spacing={1} justifyContent={"space-between"}>
|
<Grid2 container spacing={1} justifyContent={"space-between"}>
|
||||||
<Grid2
|
<Grid2
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
|
|
@ -545,7 +544,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</Grid2>
|
</Grid2>
|
||||||
{index < columns.length-1 &&
|
{index < columns.length-1 &&
|
||||||
<Grid2
|
<Grid2
|
||||||
sx={{ cursor: "col-resize" }}
|
sx={{ cursor: "col-resize", userSelect: "none" }}
|
||||||
onMouseDown={event => resizeClick(event, index)}
|
onMouseDown={event => resizeClick(event, index)}
|
||||||
>
|
>
|
||||||
|
|
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue