-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)status:fixed-next-dropIssue planned to be fixed in an upcoming release.Issue planned to be fixed in an upcoming release.
Description
Category
- Question
- Typo
- Bug
- Additional article idea
Expected or Desired Behavior
If a user navigates between pages context.listView.columns contains a list of columns for current view
Observed Behavior
If a user navigates between pages context.listView.columns contains a list of columns from ALL views that were visited since last page refresh.
Steps to Reproduce
- Create a simple Command Set
- Change
onExecutecode to log items fromcontext.listView.columnsin console:
console.log(this.context.listView.columns.map(c => c.field.displayName));
- Add FeatureFramework elements.xml to register the command set for lists
- add feature to
package-solution.json - package your solution
- deploy the solution to App Catalog and install on the site
- Create multiple lists with different columns and display the links to them in Quick Launch
- Navigate to one of the lists, open browser console and click the Command Set button
- EXPECTED/OBSERVED: console contains a list of the columns for current view
- Navigate to other list using Quick Launch, open browser console and click the Command Set button
- EXPECTED: console contains a list of the columns for current view. OBSERVED: console contains a list of the columns from previous list view and current view.
23W
Metadata
Metadata
Assignees
Labels
area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)status:fixed-next-dropIssue planned to be fixed in an upcoming release.Issue planned to be fixed in an upcoming release.