SPFx Dialog Framework: potential bug with secondary dialogs
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
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.
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.
This appears to continue to be an issue. Any thoughts on when a fix might be released? Thank you!
I Just encountered this problem. Any plans on fixing it ?
Sorry for the long delay. I've just confirmed the issue and will be looking into it.
This should be rolled out now, thanks.
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