-
Notifications
You must be signed in to change notification settings - Fork 1k
[SPFX ListCommandSet] _onListViewStateChanged event will never trigger if it is in grouped list view and this group has only one item #10047
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
Comments
We're seeing issues with this as well. This seemed to be fixed / working for a while and then noticed this week it stopped working |
@reedpamsft something on the list experiences with SPFx |
@VesaJuvonen @wuxiaojun514 @Feets20 thanks! Feets20 reported this on the other thread and we're looking into it. |
@VesaJuvonen @wuxiaojun514 @Feets20 we have a fix for this which will roll out with new client builds in January; eta the week of the 13th. Emphasis on "estimated", though. The first build of a new year is often delayed. |
Hi @Haiqi-Wu , |
@reedpamsft Will the fix roll out this week? |
Looks like it's fixed. |
Yes, it works for me now. |
@reedpamsft Was anything rolled back recently? I saw this was working fine yesterday and today it appears to be behaving how it did before |
@reedpamsft When will the new fix roll out? |
@Haiqi-Wu no ETA to share yet, sorry. |
Hi. This issue is still reproducible at the end of March 2025! |
Thanks for your patience here, sorry for the delay! We had two attempted fixes for this grouped view bug, but had to roll back because it seemed to cause some other issues. I'm looking into a new fix and will post updates here. |
We have the same problem. Can we reopen the issue if it's not fixed ? Are there any known work-arounds ? |
@PKOITC I reopened it. Currently my work around is to avoid using group by in the view. |
@natalieethell This current behavior can be quite confusing. For example, when we have a group with two files and the used selects the files one by one. The first select triggers the event, but the second selects the whole group and doesn't trigger the event. |
There was a change rolled out recently that should fix this issue. @RoelVB @wuxiaojun514 can you confirm? |
Hi @natalieethell |
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
I guess this issue maybe related with #9944
We have a spfx list command set with a customized button

Like this screenshot
This week we suddenly find it doesn't work (button doesn't show) in grouped list view when there is only one item in this group

For example, if there is only one pending item in "Approve/Reject" view, then our customized button will never appear.
I debugged the code and find

_onListViewStateChanged
event will never trigger if there is only one row in group on grouped list view.I saw there is closed similar issue #7794 but that one is not for new list UI.
Steps to reproduce
public onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void
method as example?)Expected behavior
The _onListViewStateChanged event in List View CommandSet Extension should work as expected in grouped list view
The text was updated successfully, but these errors were encountered: