Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Formatting: When saving from the editProps action inside a custom card in the document library, an error message appears #10114

Open
2 of 9 tasks
tecchan1107 opened this issue Feb 12, 2025 · 0 comments
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@tecchan1107
Copy link
Contributor

Target SharePoint environment

SharePoint Online

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

Declarative list formatting

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

No response

Describe the bug / error

In the document library, a button executing the editProps action is placed inside a custom card. When editing and saving properties using this button, the error message "Cannot load a resource from a ResourceScope that has been disposed." appears. However, the values seem to be saved correctly.

Image

Image

If you save from the button to perform the editProps action shown in the field, no error message will appear.

Image

Steps to reproduce

  1. Apply the following JSON to any column in the document library

    sample code
    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "div",
      "children": [
        {
          "elmType": "div",
          "txtContent": "Open Custom Card",
          "style": {
            "padding": "5px 10px",
            "cursor": "pointer"
          },
          "attributes": {
            "class": "ms-bgColor-themePrimary ms-fontColor-white"
          },
          "customCardProps": {
            "openOnEvent": "click",
            "isBeakVisible": true,
            "formatter": {
              "elmType": "div",
              "style": {
                "padding": "20px"
              },
              "children": [
                {
                  "elmType": "div",
                  "children": [
                    {
                      "elmType": "button",
                      "txtContent": "Edit",
                      "customRowAction": {
                        "action": "editProps"
                      }
                    }
                  ]
                }
              ]
            }
          }
        }
      ]
    }
  2. Open property edit screen from custom card

  3. Click the Save button

Expected behavior

No error message appears and can be saved.

@tecchan1107 tecchan1107 added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

1 participant