sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

New UI Document library web part command bar is empty when custom listvew command set is used

Open s-KaiNet opened this issue 1 year ago • 8 comments

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
  • [X] 💥 Microsoft Edge
  • [X] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

Latest SPFx version. Build version received from "X-MS-Meta-Sourcebuild" header: odsp-web-prod_2025-01-03.009 for document list web part JS error in dev console:

Uncaught Error: Resource #347 "GetOverrideSpfxCustomActions" is being consumed, but is not available in the current scope.
  1) Check to ensure that the dependency on this resource (and each step up the chain) is properly declared.
  2) If availability is expected, check to see if the target resource has a dependency that is only available in a child scope.
  Required by Resource #693 ""
  Required by Resource #348 ""

obraz

Describe the bug / error

When you have a SPFx list view command set extension, the command bar for document library web part isn't loaded at all:

obraz

Steps to reproduce

  1. Create a new sample list view command set extension with at least one custom button. Don't change any code, just use the default one generated by yeoman.
  2. Register command set to a document libraries (ListTemplateId="101")
  3. Deploy command set globally.
  4. Add document library web part to a page.
  5. Command bar for the web part is not loaded.

Expected behavior

The command bar along with custom commands is loaded normally:

obraz

s-KaiNet avatar Jan 13 '25 13:01 s-KaiNet

I would like to join this suspected bug in that I have a customer with two tenants who also faces this problem. The document library webpart command bar is empty and all the buttons are gone on the page when a custom command is present in the document library

JonEOffice avatar Jan 13 '25 13:01 JonEOffice

List Web Part is the same situation. All command bar buttons missing.

Haiqi-Wu avatar Jan 14 '25 08:01 Haiqi-Wu

I have same situation using a custom SPFx ListViewCommandSet Extension.

On list, all native and custom buttons are working as I spected but on page when I use a "Listview webpart", buttons are not appearing in command bar in Microsoft Lists UI and commad bar is empty .

When I disabled my custom ListViewCommandSet on TenantWideExtensions, the command bar works well on list and on page but the problem is when I have a custom ListViewCommandSet applied. Yesterday this custom SPfx was working well

My custom SPfx are on SPfx 1.15.x

Thanks to help with this bug

dalejo09 avatar Jan 14 '25 14:01 dalejo09

We have a fix for this and are looking at the best path to roll it out.

reedpamsft avatar Jan 14 '25 17:01 reedpamsft

Looks like it's fixed.

Haiqi-Wu avatar Jan 15 '25 02:01 Haiqi-Wu

We also don't have this issue on our tenants anymore. Thank you!

s-KaiNet avatar Jan 15 '25 15:01 s-KaiNet

Hello @s-KaiNet, Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

Ashlesha-MSFT avatar Mar 21 '25 07:03 Ashlesha-MSFT

Hi @Ashlesha-MSFT , the issue was resolved 2 months ago, so you can close it.

s-KaiNet avatar Mar 21 '25 07:03 s-KaiNet