Single Part App Page never receives onDisplayModeChanged when Save is clicked - Regression
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
On a Single Part App Page (web part targeting supportedHosts.SharePointFullPage), when in Edit mode and the user clicks the "Save" button on the property pane, the onDisplayModeChanged is fired and the webpart.displayMode is updated to DisplayMode.Read.
Observed Behavior
When the user clicks the Save button, the onDisplayModeChanged function is not called, and the displayMode remains as DisplayMode.Edit.
Regression of #4456
Steps to Reproduce
- On a Single Part App Page, click the Edit button to open the property pane. Notice the
onDisplayModeChangedfunction is fired, and the webpart's displayMode has changed from DisplayMode.Read to DisplayMode.Edit. - (probably optional step) Modify a property, such as changing the page title (built-in field).
- Click the "Save" button. Notice the
onDisplayModeChangedfunction is not fired, and the web part's displayMode remains as DisplayMode.Edit.
Additional Info
This issue relates to #4456 and is created to improve visibility. The content was partially copied to make it easy to review.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Context? What types of tenants (TR/SR) have you verified this in?
The more context details you can provide, the easier it is to help assist on issues. Any code you can provide and/or screenshots of the issue also help. The easier you can make it to reproduce the issue, the easier and quicker it is for someone to help you. Things that always help posting with every issue include (1) SharePoint environment(s) (on-prem / SP 2016 / SP 2019 / SharePoint Online), (2) if SharePoint Online, is the tenant configured for standard / targeted release, (3) if SharePoint Framework, list the versions of installed tools (Node.js, NPM, Yeoman, Gulp, SPFx generator, etc... use npm list -g --depth=0), (4) if applicable, browser(s) tested, (5) if applicable, version of Office UI Fabric React & (6) anything else you can provide.
Hello @andrewconnell . We have verified this on the MS tenant (microsoft.sharepoint.com), And we already reported internally, we just created this bug here for tracking purposes.
Adding more info: λ node -v v10.16.0
+-- @microsoft/[email protected] +-- @pnp/[email protected] +-- @pnp/[email protected] +-- [email protected] +-- [email protected] `-- [email protected]
CC @GrahamMcMynn Raul G (v-raugar)
Sorry clicked the wrong button
Hello @andrewconnell , any update on this item?
Yeah... regression... going to close this as a dupe. See https://github.com/SharePoint/sp-dev-docs/issues/4456#issuecomment-562253434 for details....
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues