Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Knockout web part disappears when running in SharePoint workbench #234
Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.
Expected or Desired Behavior
When running a web part using the knockout template in the SharePoint workbench, it renders the web part.
When stepping through the code on init, the web part renders initially, below the loading spinner. Then in the _internalFirstTimeRender method, when this.context.statusRenderer.clearLoadingIndicator(this.domElement) is called, the web part disappears - it is cleaned from the DOM.
I have noticed a difference between the local workbench and SharePoint workbench - 'this.domElement' in the SP workbench contains a '.placeholder' element, whereas in the local workbench it does not.
Steps to Reproduce
Yo a new knockout webpart, (fix the _description bug, and remove all custom properties). Run the web part in the workbench in SharePoint.