Skip to content

Command Set Extension triggering Command Set from different extension! #10202

@Tanddant

Description

@Tanddant

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

  • Edge Version 135.0.3179.85
  • SPFx 1.10.0 and 1.10.0

Describe the bug / error

I have two command set extensions deployed to the same list, both use the COMMAND_1 key, which I should probably have changed, but this has never been an issue before!

One opens a link, and the other a dialog, but that doesn't matter for the issue I'm facing.

When both command sets are visible in the command bar, pressing either will trigger the first one, however once they "rollover" into the overflow menu, they work as expected.

This is a solution that has been live for several years, however this only started about 3 weeks ago, we've been hoping it would resolve itself, but it hasn't.

I expect a new site to open when I press "Gå til tilbud" and the dialog to show when I press "Se serie" however (logging confirms) when I press "Se serie" and they're both visible the "Gå til tilbud" is triggered.

Steps to reproduce

  1. Create two separate Command Set extensions, in separate solutions, leave the "COMMAND_1" key, and have them simply write a Console.log - something like "Hello World 🎉" and "Hello World 🥲"
  2. Deploy them to the same list
  3. Press the button while they're both visible in the ribbon.

Expected behavior

Each command set extension is it's own solution, I would never expect "cross contamination" between different SPFx Solutions.

I would expect to see the same behaviour no matter if they're in the overflow menu or the command bar

Video showing the issue

Video.mp4

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-extensionsCategory: SharePoint Framework Extensionsarea:spfx-in-listssharepoint-developer-supportsharepoint-developer-supportstatus:fixed-next-dropIssue planned to be fixed in an upcoming release.status:rolling in productionThe fix has been created and it's currently rolling across all production tenantstype:bug-confirmedConfirmed bug, not working as designed / expected.type: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