Question regarding Modern Libraries, I wish to open document libraries in a Modal Dialog on a page but have only the library shown, not the Office 365 Suiter bar and left nav. I used the standard SP.UI.ModalDialog.showModalDialog function to open the library in dialog.
All works fine except the usual IsDlg=1 and ms-dialogHidden attributes to hide elements in a Dialog don't work, is there a new way to hide elements?
I am trying to hide to Office 365 suite bar, side bar when in Modal Dialog but it doesn't seem to be working, nor can I use the PnP Core.EmbedJavaScript sample as it doesn't seem to work on modern libraries.
Any help would be greatly appreciated, though I am not a guru in JS so I may be missing something.