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

People Picker not taken webAbsoluteUrl with ensureUser set to true #1273

Closed
VictorRomanov1986 opened this issue Jul 23, 2022 · 3 comments
Closed
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:bug
Milestone

Comments

@VictorRomanov1986
Copy link
Contributor

Category

[ ] Enhancement

[X ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.9.0]

Expected / Desired Behavior / Question

I am using this component in my Teams Tab app. My app installed not in root site collection
I expect, that PeoplePicker will search on the web, url I provided in webAbsoluteUrl. But instead it is searching in the root site, because this.context.pageContext.web.absoluteUrl reference to root site - in this case user id is wrong

Observed Behavior

<PeoplePicker
            context={context as any}
            webAbsoluteUrl={webAbsoluteUrl}
            disabled={formType === RequestFormType.View}
            peoplePickerWPclassName={formType === RequestFormType.View && styles.disabled}
            defaultSelectedUsers={selectedUsers}
            titleText={field.Title}
            placeholder={field.Description}
            personSelectionLimit={999}
            required={field.Required}
            onChange={_selectPeople}
            showHiddenInUI={false}
            ensureUser
            principalTypes={[PrincipalType.User]}
            resolveDelay={0}
            errorMessage={_validate()}
            validateOnFocusOut={true}
        />

Thanks!

@ghost
Copy link

ghost commented Jul 23, 2022

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Jul 23, 2022
@github-actions
Copy link

Thank you for submitting your first issue to this project.

@joelfmrodrigues
Copy link
Collaborator

Hi @VRomanovTau , many thanks for logging the issue.
If you have the chance to submit a PR to fix the issue, it would be really appreciated 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:bug
Projects
None yet
Development

No branches or pull requests

3 participants