sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

IViewField's render function changing passed array in items of ListView control into different properties, please see images.

Open SharePointReady opened this issue 1 year ago • 2 comments

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

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

Expected / Desired Behavior / Question

If we pass an array in Items property of ListView control, we should get an array in the Render function of IViewFields.

Observed Behavior

Passing any array of strings in the Items property of ListView control. image

The item object we get in the render function of IViewFields. image

Steps to Reproduce

Provide an array in items property of ListView control. Console log items property of the render function of IViewFields.

Thanks!

SharePointReady avatar Mar 01 '24 07:03 SharePointReady

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Mar 01 '24 07:03 ghost

Hi,

A quickfix here would be stringify the object property that we pass to items property of ListView control.

SharePointReady avatar Mar 12 '24 05:03 SharePointReady