Skip to content

ListView: _flattenItem strips out Date fields #222

@sympmarc

Description

@sympmarc

Category

[ ] Enhancement
[X] Bug
[ ] Question

Version

Please specify what version of the library you are using: [1.11.0]

Expected / Desired Behavior / Question

I'd like to be able to pass JavaScript Date fields into ListView and provide a render function for them (generally .toLocaleDateString()).

Observed Behavior

If I pass in an array of items which have JavaScript Date fields, they are stripped out of the objects in the _flattenItem function.

Steps to Reproduce

Pass an array of items into the function which has JavaScript Date fields. They will not be available for rendering. There won't be any error, but the value will not be available in the render function for the IViewField.

Metadata

Metadata

Labels

status:fixed-next-dropIssue will be fixed in upcoming release.status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions