Unable to save Web Part on Page when Fabric DetailsList control is present in Web Part
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
I'd like my web part to save :(
Observed Behavior
When using a web part with a DetailsList fabric control on it, the web part works while editing the page. But does not save. So after publishing and refreshing the page, the web part is gone. Additionally, when the DetailsList control is present, the ECB menu for the web part to edit web part properties also does not work. However, manually opening the web part property pane via this.context.propertyPane.open() does work. Of course, no web part properties are saved.
Steps to Reproduce
Create a new SPFX WebPart Project using React Add a DetailsList to the render method of the web part Preview in Workbench to verify web part looks how you expect Deploy to SharePoint Online Add web part to a page - it will look like its working here Use the pencil to try and edit the web part - nothing happens Publish page Refresh the page - web part disappears!
Here is a SPFX 1.6 web part demonstrating the issue with the detailslist control, and it fetches items from a list/library on the current site. List is configurable from web part properties, defaults to Documents.
StackExchange - SPFX Web Part Disappears on Save
Steps Taken to Try and Remediate
-Logging, lots of logging. After save, no console.log's are hit, even inside of BaseClientSideWebPart -Isolated web part -Removed all other web parts from test pages -Removed all application extensions from test site -Attempted to load sample web parts with details list - Save behavior observed! --SPFX React DetailsList Sample -Attempted to edit web part properties from the web part -Removing DetailsList from render method allows the rest of the web part to work
Side note, I wrote my own detailslist control, and the web part works now. So definitely something not playing nice inside of DetailsList.
Hello! I have same problem with DetailsList. Is there any solution?
My package.json:
Sorry - we lost track of this issue due to metadata. Is this still a problem? Lots of changes to a lot of this code over the past 2 years.
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author
Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author