pnp / PnP-Tools

Scripts and tools for Office 365 and SharePoint - More for IT Pro's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to search people in calendar list with Reponsive-UI

FrapsyOnGithub opened this issue · comments

Hi.
I have created a calendar application and add a people picker multiselect.
In newform and editform I can directly validate the name of a user. However, when I click on the browse icon, the search returns no results.

Am i the only one having this problem ?

@FrapsyOnGithub which solution is the question target to?

I confirm this error. We need to have something like this:

pp-modrrn-search-works-2021-04-19_162320

But the window is empty instead:

pp-search-not-working-2021-04-19_154714

Any ideas, can we partially disable SP-Responsive-UI functionality on calendar people pickers?..

Best regards, Gennady

Ok. As a workaround I added this stamp in init function (not perfect, maybe better do something like window.location.href.toLowerCase().indexOf("/newform.aspx"):

        init: function () {
            if (!initState) {

                /* gg added: return if New Form or Edit Form */
                if (window.location.href.indexOf('/NewForm.aspx') < 0 || window.location.href.indexOf('/EditForm.aspx') < 0 ) {
                    console.log('New/Edit Form; PnP Responsive skipped');
                    return;
                }

                var currentScriptUrl;

Now People Picker works for me

Best regards, Gennady