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

fab-people-picker resolveSuggestions callback gets invoked with the incorrect scope #213

Open
nmallick1 opened this issue Dec 29, 2022 · 0 comments

Comments

@nmallick1
Copy link

I am using the fab-people-picker component and have attached a callback to resolveSuggestions. When the callback is invoked, the this pointer points to the fab-people-picker component instead of pointing to the container (i.e.. my component where the fab-people-picker is added).

This is a screenshot of the this pointer when resolveSuggestions callback is invoked.
image

Same's the case with any callback that is provided as an input to the component, e.g.. selectedItems callback

I tried to get around this by binding my method to (onResolveSuggestions)="AuthorPickerInputChanged($event)" however as expected, the $event is empty, however the this variable is correct and points to my component.

I need this to point to my component so that I can use the injected services to actually resolve the suggestions.

Any suggestions on how I can get this to work?

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

1 participant