sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Single Part App Page never receives onDisplayModeChanged when Save is clicked - Regression

Open rgarita opened this issue 7 years ago • 8 comments

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

  1. On a Single Part App Page, click the Edit button to open the property pane. Notice the onDisplayModeChanged function is fired, and the webpart's displayMode has changed from DisplayMode.Read to DisplayMode.Edit.
  2. (probably optional step) Modify a property, such as changing the page title (built-in field).
  3. Click the "Save" button. Notice the onDisplayModeChanged function 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.

rgarita avatar Nov 13 '19 18:11 rgarita

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Nov 13 '19 18:11 msft-github-bot

Context? What types of tenants (TR/SR) have you verified this in?

andrewconnell avatar Nov 13 '19 20:11 andrewconnell

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.

msft-github-bot avatar Nov 13 '19 20:11 msft-github-bot

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)

rgarita avatar Nov 13 '19 23:11 rgarita

Sorry clicked the wrong button

rgarita avatar Nov 14 '19 00:11 rgarita

Hello @andrewconnell , any update on this item?

rgarita avatar Nov 25 '19 22:11 rgarita

Yeah... regression... going to close this as a dupe. See https://github.com/SharePoint/sp-dev-docs/issues/4456#issuecomment-562253434 for details....

andrewconnell avatar Dec 07 '19 15:12 andrewconnell

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

msft-github-bot avatar Jan 23 '20 06:01 msft-github-bot