Add top and left to cell editor props back
Author: chirayuchiripalCreated Sep 15, 2021Updated Jul 29, 2026
Use case
The top and left properties were removed (PR #2420) from CellEditorProps which is taking away an important functionality to have custom editor with portal rendered at the cell position. We want to have a custom editor that opens at (right below) the cell position. The top and left properties are useful in positioning the cell editor at desired location when editor is rendered with portal and possibly floating on/below the cell itself.
Proposed solution
- Add top and left back to CellEditorProps. OR
- When creating editor with portal, use current cell as the portal target (instead of Body) if user does not provide their custom portal target.
Source: Comcast/react-data-grid