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 · 10 comments
Assignees
Labels
sharepoint-developer-support sharepoint-developer-support type:bug-confirmed Confirmed bug, not working as designed / expected. 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
@Ashlesha-MSFT
Copy link

Hello @tecchan1107,
Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

@Ashlesha-MSFT
Copy link

@tecchan1107,
I could see only name column value after clicking edit button, I have given Edit Permission too. Still not able to see edit option for choice column.
Could you please suggest any addtiotional step to repro the issue?

@tecchan1107
Copy link
Contributor Author

Hi @Ashlesha-MSFT . Thanks for the reply!

I could see only name column value after clicking edit button, I have given Edit Permission too. Still not able to see edit option for choice column.
Could you please suggest any addtiotional step to repro the issue?

The following is the procedure for reproduction.

  1. Add a Choice column to the document library
  2. Additionally, add a column of any type for formatting purpose
  3. Configure JSON for formatting the column added in step 2
  4. Open the property editing screen from the custom card and save
Reproduction_10114.mp4

@watana2
Copy link
Contributor

watana2 commented Feb 25, 2025

Looks like a chatbot account.

@Ashlesha-MSFT
Copy link

@tecchan1107,
Have you given any permission in library setting, I could able to see the "editprops" works for list but in document library i only able to see name column to edit.

Image

@tecchan1107
Copy link
Contributor Author

@Ashlesha-MSFT
Perhaps you are clicking on the Edit button for a folder. Please try clicking the Edit button for the file.

Image

@XueSheng-GIT
Copy link

@Ashlesha-MSFT I can reproduce the issue, following the steps presented by @tecchan1107.

Looking at the screenshots and screenrecordings, I notice that the chat/comment area is shown in the form. I don't see this for document libraries (only in lists). Can this be enabled somehow or is this a new feature which will rollout soon?

@Ashlesha-MSFT
Copy link

@tecchan1107,
We were able to reproduce the issue, and we are investigating it. We have logged this as a bug, and our engineering team will look into it.
Thank you for your patience!

@watana2
Copy link
Contributor

watana2 commented Mar 19, 2025

Tested a few tenants—error no longer appears, but the fix is incorrect. The edit prop window keeps showing after clicking.
Also noticed, the managed metadata column type now auto-selects the first item from list when typing a single character, which is an unwanted change.
Image

@VesaJuvonen VesaJuvonen added type:bug-confirmed Confirmed bug, not working as designed / expected. and removed bug labels Mar 20, 2025
@watana2
Copy link
Contributor

watana2 commented Mar 22, 2025

The edit properties now appears as popup windows for doc lib, but when using the search bar still shows the old side pane.
The managed metadata column type is now back to its original state, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sharepoint-developer-support sharepoint-developer-support type:bug-confirmed Confirmed bug, not working as designed / expected. 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

5 participants