Skip to content

[Bug] ListItemComments Control does not show more than 20 comments when there are between 21 - 30 comments #1968

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

Open
zapftho opened this issue Mar 19, 2025 · 3 comments

Comments

@zapftho
Copy link

zapftho commented Mar 19, 2025

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

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

We tested also with 3.20.0 but with the same result.

Expected / Desired Behavior / Question

We expect that the ListItemComments control shows all comments of a list item. As the documentation at https://pnp.github.io/sp-dev-fx-controls-react/controls/ListItemComments/ states: "User can scroll to load more comments if they exist (infinite scroll)"

Observed Behavior

The behavior is a bit strange but I will try to describe it as good as possible.
We tried to use the ListItemComments control for one of our apps where we considered SharePoint List Item Comments as useful. We noticed that when a list item in a SharePoint List has between 1-20 comments all is working fine. However, if the list item has >=21 comments and <=30 comments, only the last 20 comments are shown. In addition a huge whitespace is added to the end of the list of comments:

Image

As soon as we add the 31st comment, all of the comments are shown with infinite scrolling and also that huge whitespace is gone in that case.

In addition some similar behavior happens starting with 41 comments. However, in this case I couldn't get it working again anymore (even with 60 comments they are cutoff and the huge whitespace is shown).

Image

Steps to Reproduce

We are using the component like this:

<ListItemComments
  listId={context.list.guid.toString()}
  itemId={String(item.ID)}
  serviceScope={context.serviceScope as any}
/>
Copy link

Thank you for submitting your first issue to this project.

@Sandeep-FED
Copy link

@zapftho, I'm not able to reproduce this issue. Is this an intermittent issue?

@zapftho
Copy link
Author

zapftho commented Apr 11, 2025

@Sandeep-FED Thanks for your reply! It seems I am also no longer able to reproduce this. The main thing that has changed on our form is that we now only have one instance of the component on our form. Before we had two of them. As I have not seen any further changes by our DEVs maybe there was some kind of conflict here when using multiple instances of the component but not really sure about that.

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

No branches or pull requests

2 participants