Skip to content

SPFx extension CommandSet in document library appears multiple times in context menu #6891

@Marlen-Jacob

Description

@Marlen-Jacob

Category

  • Bug

Describe the bug

After deploying an SPFx extension with location ClientSideExtension.ListViewCommandSet.ContextMenu or ClientSideExtension.ListViewCommandSet the command randomly appears multiple times in the context menu. After a Shift-Reload the command always appears correctly.
This behavior is unrelated to the form of deployment. It's happening with tenant wide deployed extensions as well as with site controlled deployments.

The actual control is always fired only once, even when it appears twice ore more often. It seems so be a caching issue when the page renders.

Steps to reproduce

DELETE THIS LINE BEFORE SUBMITTING - Provide steps to reproduce the behavior:

  1. Create a SPFx Extention
  2. Set in elements.xml location="ClientSideExtension.ListViewCommandSet" and ListTemplateId="101"
  3. Deploy to app catalog and add to site
  4. (especially in nested folders?) the context menu entry appears twice or more often
  5. Shift-reload the page to clear the multiple entry

Expected behavior

The command should only appear once.

Environment details (development & target environment)

  • Target Environment: SharePoint Online
  • Framework: SPFx v1.11.0
  • Browser(s): all Browsers

Metadata

Metadata

Assignees

No one assigned

    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:bug-confirmedConfirmed bug, not working as designed / expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions