fix: removed auto height to fix glitch on Edit Tools (#5815)

Removed auto height from table node component

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Lucas Oliveira 2025-01-21 22:14:57 -03:00 committed by GitHub
commit 6f04e5783c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 6 deletions

View file

@ -161,7 +161,6 @@ export default function TableNodeComponent({
setSelectedNodes(event.api.getSelectedNodes());
}}
rowSelection={table_options?.block_select ? undefined : "multiple"}
suppressRowClickSelection={true}
editable={editable}
pagination={!table_options?.hide_options}
addRow={addRow}

View file

@ -2,11 +2,9 @@ import ForwardedIconComponent from "@/components/common/genericIconComponent";
import TableComponent, {
TableComponentProps,
} from "@/components/core/parameterRenderComponent/components/tableComponent";
import { Button } from "@/components/ui/button";
import { TableOptionsTypeAPI } from "@/types/api";
import { DialogClose } from "@radix-ui/react-dialog";
import { AgGridReact } from "ag-grid-react";
import { ElementRef, ForwardedRef, forwardRef } from "react";
import { ForwardedRef, forwardRef } from "react";
import BaseModal from "../baseModal";
interface TableModalProps extends TableComponentProps {

View file

@ -562,8 +562,8 @@ export function FormatColumns(columns: ColumnField[]): ColDef<any>[] {
};
if (col.formatter !== FormatterType.text || col.edit_mode !== "inline") {
if (col.edit_mode === "popover") {
newCol.wrapText = true;
newCol.autoHeight = true;
newCol.wrapText = false;
newCol.autoHeight = false;
newCol.cellEditor = "agLargeTextCellEditor";
newCol.cellEditorPopup = true;
newCol.cellEditorParams = {