Unable to search people in calendar list with Reponsive-UI
FrapsyOnGithub opened this issue · comments
FrapsyOnGithub commented
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 ?
Mikael Svenson commented
@FrapsyOnGithub which solution is the question target to?
FrapsyOnGithub commented
hi, it's on the UI Responsive solution
Gennady G commented
Gennady G commented
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