Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SharePointReady opened this issue Mar 1, 2024 · 2 comments

Comments

@SharePointReady
Copy link

SharePointReady commented Mar 1, 2024

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!

@ghost
Copy link

ghost commented Mar 1, 2024

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

@ghost ghost added the Needs: Triage 🔍 label Mar 1, 2024
@SharePointReady SharePointReady changed the title ListView control render function changing array into different properties, please see images. IViewField's render function changing passed array in items of ListView control into different properties, please see images. Mar 7, 2024
@SharePointReady
Copy link
Author

Hi,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant