inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.44k stars 57 forks source link

Wrong TypeColum editor definition #350

Open marquetd opened 1 year ago

marquetd commented 1 year ago

The definition expects a ReactNode in TypeColumn definition:

readonly editor?: ReactNode;

Following the definition with numeric Editor for example:

{ 
....
 editor: <NumericEditor/>,
...
}

Raise the following error : image

Following the documentation https://reactdatagrid.io/docs/inline-edit#column-editors

{
....
editor: NumericEditor as any,
...
}

make it works

image

The definition or the code needs to be changed.

marquetd commented 1 year ago

editorProps is also missing