sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Microsoft Lists: unknown full screen error message caused by "hideSelection" JSON property applied to a view

Open Fedes365 opened this issue 7 months ago • 5 comments

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
  • [X] 💥 Microsoft Edge
  • [X] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • Microsoft Edge Version 126.0.2592.102 (Official build) (64-bit)
  • Google Chrome Version 126.0.6478.127 (Official build) (64-bit)

Describe the bug / error

"hideSelection": true property applied to a Microsoft Lists view through custom JSON formatting causes an unknown error. After applying this custom property, when a user clicks on any column header, an error message appears on full screen with a button to refresh (Retry).

immagine

However, after performing a refresh, this error is shown again without any information about.

This error doesn't occur if hideSelection property is removed from a view JSON formatting or set to false.

Steps to reproduce

After performing some checks and testing together with @tecchan1107, here are the steps we identified to reproduce this error:

  1. Create a new list
  2. Click on "All items" tab view and click on Format current view
  3. Click on Advanced mode and paste the following basic JSON code:

    { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "hideSelection": true }

  4. Save and close the advacend formatting pane
  5. Click on any column header to get the full screen error message:

    immagine

Expected behavior

It should be possible to click on any column header without triggering this error message, even if "hideSelection": true is applied to a view through JSON custom formatting.

Additional details: this error doesn't show up if a list is used in "Edit in grid view" mode.

Fedes365 avatar Jul 15 '24 11:07 Fedes365