Skip to content

SPFx Field Customizers breaks the icons in the context menu of the item (....) #11086

Open

Description

@Igli1994

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

  • browser version
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

I have developed a SPFX field customizer with a logic,
When i add this field in the view seems that the icons of commands in the context menu(...) are not showing and another issue also in the view of the document library i use a e json formatter to hide a command and this command it is shown in context menu but in command bar everything seems to be ok icons the command is hidden etc,
Even if i remove the logic from the spfx field customizer still the issue remains,
If i remove this field from the view everything seems to be ok,
Can you help with this please,

Steps to reproduce

1.Create a spfx field customizer
2.Attach this spfx field customizer to a field in the view
3.and open context menu of the item in document library(....)

Expected behavior

Even if we attach the spfx field customizer in a specific field in the list it should not break the icons in context menu

Activity

  1. added
    type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
    on Nov 6, 2026
  2. m365-agent-toolkit-assistant commented on Nov 6, 2026

    @m365-agent-toolkit-assistant

    👋 Hi Igli1994,

    Thank you for reporting this issue. Here is an AI-generated initial response:

    Classification: Bug — the reported menu behavior is inconsistent with the documented behavior of SharePoint view customizations, though the cause is unconfirmed.

    • You report that adding the field to the view makes context-menu icons disappear, even after removing the customizer’s logic. The type:bug-suspected label is a triage signal, not confirmation.
    • Microsoft documents that hiding a command through view-formatting JSON should hide it in both the command bar and item context menu. The command that remains visible needs its key and JSON checked first.

    Upgrade check: No fixing SPFx version is verified; your SPFx version wasn’t supplied.

    What to do now:

    1. Reproduce in a clean library with a generated, unmodified Field Customizer; compare the menu before and after adding its field to the view.
    2. Share your SPFx and browser versions, the view-formatting JSON and command key, screenshots, and any console errors. Check the documented updated command keys.

    Useful links:


    Note: AI-generated guidance may be incomplete or incorrect. Please verify suggestions before applying them.

  3. Igli1994 commented on Nov 6, 2026

    @Igli1994
    Author

    If i remove the field which contains the spfx field customizer from the view everything works well.
    I am using spfx 1.21.1 and this bug is on all the browsers

  4. Igli1994 commented on Nov 6, 2026

    @Igli1994
    Author

    In command bar command icons are ok and everything works well only in the context menu (...) of the item it is the issue when a field contains a spfx field customizer and is in a view of document library

  5. self-assigned this
    on Nov 9, 2026
  6. Ashlesha-MSFT commented on Nov 9, 2026

    @Ashlesha-MSFT
    Contributor

    Hi Igli1994,

    We were able to reproduce the reported behavior using a minimal SPFx 1.21.1 Field Customizer in a SharePoint Online document library:

    • Command icons disappear from the item’s ellipsis (…) context menu.
    • A command hidden through view-formatting JSON remains visible in the item context menu, while the command bar behaves as expected.
    • Removing the Field Customizer association restores the expected behavior.

    We’ll raise a bug with the engineering team for further investigation and share updates in this thread as they become available.

    Thank you for reporting this issue and providing the additional details.

  7. added
    type:bug-confirmedConfirmed bug, not working as designed / expected.
    and removed
    type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
    on Nov 9, 2026
  8. Igli1994 commented on Nov 9, 2026

    @Igli1994
    Author

    Hello,
    Thanks for the feedback,
    Also the icons on the commands in context menu(...) are not showing correctly if we add the sp field customizer take even this thing to fix,
    Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions