pnp / pnp/sp-dev-fx-controls-react

Folder picker when creating a new folder does not work for Lists, just document libraries

Open
#2,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 3.21.0 ]

Expected / Desired Behavior / Question

Trying to create a folder within the picker for a SharePoint list.

Observed Behavior

It appears the folder is created, however it never shows up in the list.
However using PNP Powershell, when you call

get-pnpfolder -ListRootFolder <ListName> | Get-PnPFolderInFolder

All the folders created do show.
If you call

Get-PnpFolder -ListRootFolder Nominations | Get-PnpFolderInFolder -ExcludeSystemFolders 

All the folders you have created using the picker do not return.
Additionally when you view the folders on the list inside the picker, it picks up 2 System folders which relate to the Attachments folder, and the ContentType Folder.

Steps to Reproduce

Use the FolderPicker pointing to a list instead of a Document library. Ensure the create folder options is set to true.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the FolderPicker entry point and reproduce the issue against a SharePoint list with folder creation enabled, comparing it with a document library. Trace how created folders are listed and how system folders are filtered; done means new folders appear in the list and the Attachments and ContentType folders are excluded.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.