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

SPFx Dialog Framework: potential bug with secondary dialogs

Open PaoloPia opened this issue 8 years ago • 7 comments

Category

  • [ ] Question
  • [ ] Typo
  • [X] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

When you create an SPFx component like a Web Part or an Extension, and you use the SPFx Dialog Framework (@microsoft/sp-dialog) to render a primary dialog and a secondary dialog, using the SecondaryDialogProvider, you should be able to return to the primary dialog after closing the secondary one.

Observed Behavior

The primary dialog completely disappears, after rendering any secondary dialog. When you close the secondary dialog, the primary one is not anymore on the screen, even if the isOpen property of the primary dialog has a value of true and the isHidden property has a value of false. Moreover, from an HTML/DOM perspective, the content of the primary dialog is completely empty. It looks like when opening the secondary dialog, somehow the HTML of the primary one gets removed.

Steps to Reproduce

I attach a sample project through which you can easily experience the issue. Just run the solution (gulp serve --nobrowser), and add the DialogTest Web Part to the SharePoint Workbench. Click the "Test" button in the Web Part, click the "Open Secondary" command in the dialog, close the secondary dialog and you will see the browser area grayed because of the overlay gray panel, without the primary dialog.

Thanks for any feedback. spfx-secondary-dialog-test.zip

PaoloPia avatar Apr 30 '18 21:04 PaoloPia

Hi, I am also experiencing the same issues with secondary dialog so is there any work around to fix this background gray panel.

Appreciate any kind of help on this.

mohababu009 avatar Aug 10 '18 21:08 mohababu009

Hello Team,

Can you please confirm whether this secondary dialog bug is resolved or not. Also can you please share some working examples for opening secondary dialog using sp-dialog 1.8.2.

Appreciate any kind of help on this.

rajamaniperumal avatar Jul 30 '19 07:07 rajamaniperumal

This appears to continue to be an issue. Any thoughts on when a fix might be released? Thank you!

JonathanHuss avatar Oct 30 '20 18:10 JonathanHuss

I Just encountered this problem. Any plans on fixing it ?

vincepunkrock avatar Aug 16 '21 16:08 vincepunkrock

Sorry for the long delay. I've just confirmed the issue and will be looking into it.

AJIXuMuK avatar Sep 29 '21 19:09 AJIXuMuK

This should be rolled out now, thanks.

patmill avatar Oct 25 '21 18:10 patmill

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

ghost avatar Nov 03 '21 06:11 ghost