DataTable sortField allows a function, but the prop type is only a string #647
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Hi,
The docs say that you can use the
sortField
on aDataTable
Column
, as such(data) => customFieldResolver(...)
. The implementation works as it falls intoObjectUtils.resolveFieldData
, which checks fortypeof === "function"
, however theColumn
props
type
is set toString
so the console is filled with warnings. It'd be nice if theprop
type
could be altered to allow either a string or function, avoiding these errors.The text was updated successfully, but these errors were encountered: