A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: remove select-none, which prevented select on tables (#5356)
Shahmir Varqha16f090dab700
diff --git a/frontend/src/components/data-table/renderers.tsx b/frontend/src/components/data-table/renderers.tsxindex 5c9e205200..1fc119ccd5 100644--- a/frontend/src/components/data-table/renderers.tsx+++ b/frontend/src/components/data-table/renderers.tsx@@ -20,8 +20,6 @@ import {TableRow,} from "@/components/ui/table";import { cn } from "@/utils/cn";-import { CellRangeSelectionIndicator } from "./range-focus/cell-selection-indicator";-import { useCellRangeSelection } from "./range-focus/use-cell-range-selection";export function renderTableHeader<TData>(table: Table<TData>,@@ -79,13 +77,6 @@ export const DataTableBody = <TData,>({getRowIndex,viewedRowIdx,}: DataTableBodyProps<TData>) => {- const {- handleCellMouseDown,- handleCellMouseUp,- handleCellMouseOver,- handleCellsKeyDown,- } = useCellRangeSelection({ table });-const renderCells = (cells: Array<Cell<TData, unknown>>) => {return cells.map((cell) => {const { className, style: pinningstyle } = getPinningStyles(cell.column);@@ -99,7 +90,7 @@ export const DataTableBody = <TData,>({tabIndex={0}key={cell.id}className={cn(- "whitespace-pre truncate max-w-[300px] select-none outline-none",+ "whitespace-pre truncate max-w-[300px]",cell.column.getColumnWrapping &&cell.column.getColumnWrapping() === "wrap" &&"whitespace-pre-wrap min-w-[200px]",@@ -108,14 +99,8 @@ export const DataTableBody = <TData,>({)}style={style}title={String(cell.getValue())}- onMouseDown={(e) => handleCellMouseDown(e, cell)}- onMouseUp={handleCellMouseUp}- onMouseOver={(e) => handleCellMouseOver(e, cell)}>- <CellRangeSelectionIndicator cellId={cell.id} />- <div className="relative">- {flexRender(cell.column.columnDef.cell, cell.getContext())}- </div>+ {flexRender(cell.column.columnDef.cell, cell.getContext())}</TableCell>);});@@ -129,7 +114,7 @@ export const DataTableBody = <TData,>({};return (- <TableBody onKeyDown={handleCellsKeyDown}>+ <TableBody>{table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => {// Only find the row index if the row viewer panel is open