Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

fix(tables): long text in a selected cell stays inside its cell (#16655)

Bartosz Majewski4eabf9e2f55d
diff --git a/packages/web/src/app/routes/tables/id/react-data-grid.css b/packages/web/src/app/routes/tables/id/react-data-grid.css
index 0a73ff89e5e..ed244b722c2 100644
--- a/packages/web/src/app/routes/tables/id/react-data-grid.css
+++ b/packages/web/src/app/routes/tables/id/react-data-grid.css
@@ -40,7 +40,7 @@
}
}
-div[role="gridcell"]:focus-within {
+div[role="gridcell"]:has([data-editing="true"]) {
overflow: visible !important;
}
diff --git a/packages/web/src/features/tables/components/editable-cell.tsx b/packages/web/src/features/tables/components/editable-cell.tsx
index 7606fa4baf0..5f25b1df20c 100644
--- a/packages/web/src/features/tables/components/editable-cell.tsx
+++ b/packages/web/src/features/tables/components/editable-cell.tsx
@@ -134,6 +134,7 @@ export function EditableCell({
)
}
tabIndex={0}
+ data-editing={isEditing}
onClick={() => {
onClick?.();
setSelectedCell({ rowIdx, columnIdx: column.idx });