Skip to content

Command set extension is no longer visible in the context menu (ECB) #10121

Closed
@GuidoZam

Description

@GuidoZam

Target SharePoint environment

SharePoint Online

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

💥 SharePoint Framework

Developer environment

Windows

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
    • Microsoft Edge: Version 132.0.2957.140 (Official build) (64-bit)
    • Google Chrome: Version 132.0.6834.196 (Official Build) (64-bit)
  • SPFx version: 1.20.0
  • Node.js version: v18.17.1

Describe the bug / error

In my company we are using the ListView Command Set to display commands both in the command bar and in the context menu. Suddenly the commands in the context menu (ECB) are not visible anymore in a client production environment without any updates of our SPPKG file.

Using Yeoman generator I've created a sample solution based on the default template for the ListView Command Set extension. Then changed the custom action location to ClientSideExtension.ListViewCommandSet and run gulp serve. The commands does show up in the command bar but does not display in the context menu, I've tried it even in another tenant with no luck.

Updating the custom action location to either ClientSideExtension.ListViewCommandSet.ContextMenu or ClientSideExtension.ListViewCommandSet.CommandBar seems to have no consequence, the commands still show up in the command bar, no matter what value we provide for location, and not in the context menu.

Steps to reproduce

  1. Create a new SPFx solution (v. 1.20.0) for a ListView Command Set
  2. Change the location of the commands to ClientSideExtension.ListViewCommandSet
  3. Execute gulp serve
  4. The commands are present in the command bar but not in the context menu

Expected behavior

I would expect the SPFx extension to keep working as before. When specifying the location as ClientSideExtension.ListViewCommandSet the commands should be displayed in both the command bar and the context menu as stated in the Microsoft learn documentation.

Metadata

Metadata

Assignees

Labels

area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-in-listssharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions