Skip to content

CommandSet Extensions don't work in Document Library when navigating from LHN link on site home page #7739

@teresahoes

Description

@teresahoes

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

No response

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

  • browser version
  • MS Edge - Version 98.0.1108.50 (Official build) (64-bit)
  • Chrome - Version 98.0.4758.102 (Official Build) (64-bit)
  • SPFx version - 1.14 (also does not work in prior versions 1.12 and 1.13 tested)
  • Node.js version - v14.17.1

Describe the bug / error

When you navigate from a modern site's home page to a document library using the OOTB left hand navigation, something does not fully load on the document library page as any custom listview extensions do not work. If you refresh the library page, then the actions work as expected.

Steps to reproduce

  1. Create a new SPFX extension project using the 1.14 yeoman generator, using all default values for HelloWorld listviewcommandset
  2. Update elements.xml to target libraries with RegistrationId=101
  3. Deploy to SharePoint Online and add to a modern site
  4. Create a document library, add a couple documents, make sure it shows in navigation
  5. Go to home page of site, click on the link to open the document library
  6. Try to click on the 'command 2' action - does not open alert box as expected
  7. Select one or more documents, click on the 'command 1' action - does not open alert box as expected
  8. Refresh page - click on the 'command 2' action - it now opens the alert box that says 'this command is always visible'

i've attached my skeleton project that was deployed to our sponline environment.
spfx-14-test.zip

Expected behavior

The command set buttons should work whether you navigate from home page or land directly on a document library page.

Metadata

Metadata

Assignees

Labels

area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-extensionsCategory: SharePoint Framework Extensionsstatus:fixed-next-dropIssue planned to be fixed in an upcoming release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions