[SPFX ListCommandSet] _onListViewStateChanged event will never trigger if it is in grouped list view and this group has only one item #10047
Labels
area:spfx-in-lists
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
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: