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

onListViewUpdated nor listViewStateChangedEvent in command set are both not firing for document library web part #10054

Open
9 tasks
s-KaiNet opened this issue Dec 13, 2024 · 2 comments
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:spfx-extensions Category: SharePoint Framework Extensions area:spfx-in-lists type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@s-KaiNet
Copy link
Contributor

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • SPFx version 1.18

The problem happens on one of the tenants. We inspected the headers for OOB SharePoint list view related webparts, and found build version header: x-ms-meta-sourcebuild:odsp-web-prod_2024-12-06.011 where the problem is.
For other tenants we have version odsp-web-prod_2024-11-08.003 and for those tenants everything works as expected.

Describe the bug / error

When you have a document library web part on a page, onListViewUpdated and listViewStateChangedEvent don't fire when you select a row.

Steps to reproduce

  1. Create a list view command set, where you handle onListViewUpdated or listViewStateChangedEvent events. Have at least one command in the command set.
  2. Deploy your command set to SharePoint.
  3. Add document library web part to a page, add some documents.
  4. Select a document by selecting a row.
  5. The code in your onListViewUpdated or listViewStateChangedEvent will not fire.

Expected behavior

When you have a document library web part on a page, onListViewUpdated and listViewStateChangedEvent should fire, when you select a document.

@s-KaiNet s-KaiNet added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Dec 13, 2024
@reedpamsft
Copy link
Contributor

@s-KaiNet Thanks for the report, we'll have a look.

@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Dec 13, 2024
@AJIXuMuK AJIXuMuK added area:spfx Category: SharePoint Framework (not extensions related) area:spfx-extensions Category: SharePoint Framework Extensions area:spfx-in-lists and removed Needs: Triage 🔍 Awaiting categorization and initial review. labels Dec 13, 2024
@s-KaiNet
Copy link
Contributor Author

UPD
on your tenants we received a new version of list-related webparts with build number odsp-web-prod_2024-12-06.014 where the issue seems fixed, because we cannot reproduce it anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:spfx-extensions Category: SharePoint Framework Extensions area:spfx-in-lists type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

4 participants