diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellEditMode.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellEditMode.tsx index 16e59db8d559..0e083492f095 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellEditMode.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellEditMode.tsx @@ -1,7 +1,6 @@ -import { ReactElement } from 'react'; -import { createPortal } from 'react-dom'; import styled from '@emotion/styled'; import { autoUpdate, flip, offset, useFloating } from '@floating-ui/react'; +import { ReactElement } from 'react'; const StyledEditableCellEditModeContainer = styled.div` position: absolute; @@ -44,12 +43,9 @@ export const RecordTableCellEditMode = ({ ref={refs.setReference} data-testid="editable-cell-edit-mode-container" > - {createPortal( - - {children} - , - document.body, - )} + + {children} + ); };