Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to search people in calendar list with Reponsive-UI #244

Open
FrapsyOnGithub opened this issue Jan 29, 2020 · 4 comments
Open

Unable to search people in calendar list with Reponsive-UI #244

FrapsyOnGithub opened this issue Jan 29, 2020 · 4 comments

Comments

@FrapsyOnGithub
Copy link

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 ?

@wobba
Copy link
Collaborator

wobba commented Jan 30, 2020

@FrapsyOnGithub which solution is the question target to?

@FrapsyOnGithub
Copy link
Author

hi, it's on the UI Responsive solution

@Gennady-G
Copy link

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

@Gennady-G
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants